Mesa (master): draw: Remove dead code.

Vinson Lee vlee at kemper.freedesktop.org
Tue Feb 23 07:24:35 UTC 2010


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Mon Feb 22 23:23:57 2010 -0800

draw: Remove dead code.

---

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

diff --git a/src/gallium/auxiliary/draw/draw_pipe_offset.c b/src/gallium/auxiliary/draw/draw_pipe_offset.c
index e829492..8e32194 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_offset.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_offset.c
@@ -161,7 +161,7 @@ struct draw_stage *draw_offset_stage( struct draw_context *draw )
 {
    struct offset_stage *offset = CALLOC_STRUCT(offset_stage);
    if (offset == NULL)
-      goto fail;
+      return NULL;
 
    draw_alloc_temp_verts( &offset->stage, 3 );
 
@@ -176,10 +176,4 @@ struct draw_stage *draw_offset_stage( struct draw_context *draw )
    offset->stage.destroy = offset_destroy;
 
    return &offset->stage;
-
- fail:
-   if (offset)
-      offset->stage.destroy( &offset->stage );
-
-   return NULL;
 }




More information about the mesa-commit mailing list