radeon: Remove dead code
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 5 Nov 2013 20:38:22 +0000 (12:38 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 15 Jan 2014 18:02:47 +0000 (10:02 -0800)
A future patch will rename some of the fields of gl_viewport_attrib, and
I don't want to update dead code that I can't test.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/radeon/radeon_common.c

index 7be0ba732a6154f4ea1d11597345ee65ab31460b..d083e5b021495e39f1130352792ea1e758c5f117 100644 (file)
@@ -317,15 +317,6 @@ void radeon_draw_buffer(struct gl_context *ctx, struct gl_framebuffer *fb)
        _mesa_reference_renderbuffer(&radeon->state.color.rb, &rrbColor->base.Base);
        radeon->state.color.draw_offset = offset;
 
-#if 0
-       /* update viewport since it depends on window size */
-       if (ctx->Driver.Viewport) {
-               ctx->Driver.Viewport(ctx, ctx->Viewport.X, ctx->Viewport.Y,
-                                    ctx->Viewport.Width, ctx->Viewport.Height);
-       } else {
-
-       }
-#endif
        ctx->NewState |= _NEW_VIEWPORT;
 
        /* Set state we know depends on drawable parameters: