draw: Remove draw_install_aaline_stage dead code.

Remove dead code left over from commit dbb2cf388b ("draw: simplify
(and correct) aaline fallback (v2)").

Fix defect reported by Coverity Scan.

Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this statement:
(*aaline->stage.destroy)(&a....

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7265>
This commit is contained in:
Vinson Lee 2020-10-21 16:09:27 -07:00
parent 0a4c1db926
commit a575bb1369

View file

@ -747,7 +747,7 @@ draw_install_aaline_stage(struct draw_context *draw, struct pipe_context *pipe)
*/
aaline = draw_aaline_stage(draw);
if (!aaline)
goto fail;
return FALSE;
/* save original driver functions */
aaline->driver_create_fs_state = pipe->create_fs_state;
@ -764,10 +764,4 @@ draw_install_aaline_stage(struct draw_context *draw, struct pipe_context *pipe)
draw->pipeline.aaline = &aaline->stage;
return TRUE;
fail:
if (aaline)
aaline->stage.destroy(&aaline->stage);
return FALSE;
}