Mesa (master): draw: Remove dead code.

Vinson Lee vlee at kemper.freedesktop.org
Sun Feb 21 09:58:46 UTC 2010


Module: Mesa
Branch: master
Commit: d89de9c13fe6cd1f2f1a82d8bc0988d06e629def
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d89de9c13fe6cd1f2f1a82d8bc0988d06e629def

Author: Vinson Lee <vlee at vmware.com>
Date:   Sun Feb 21 01:57:16 2010 -0800

draw: Remove dead code.

---

 src/gallium/auxiliary/draw/draw_pipe_aapoint.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_pipe_aapoint.c b/src/gallium/auxiliary/draw/draw_pipe_aapoint.c
index 97f3480..9f9fb43 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_aapoint.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_aapoint.c
@@ -864,7 +864,7 @@ draw_install_aapoint_stage(struct draw_context *draw,
     */
    aapoint = draw_aapoint_stage( draw );
    if (aapoint == NULL)
-      goto fail;
+      return FALSE;
 
    aapoint->pipe = pipe;
 
@@ -881,10 +881,4 @@ draw_install_aapoint_stage(struct draw_context *draw,
    draw->pipeline.aapoint = &aapoint->stage;
 
    return TRUE;
-
- fail:
-   if (aapoint)
-      aapoint->stage.destroy( &aapoint->stage );
-
-   return FALSE;
 }




More information about the mesa-commit mailing list