[Mesa-dev] [PATCH] mesa: Remove unused variables left over from 107ae27e57d.

Mathias.Froehlich at gmx.net Mathias.Froehlich at gmx.net
Sun Apr 5 00:32:55 PDT 2015


From: Mathias Froehlich <Mathias.Froehlich at gmx.net>

David,
You mean the below.
Ok to push?
Greetings and Thanks!
Mathias

Signed-off-by: Mathias Froehlich <Mathias.Froehlich at web.de>
---
 src/mesa/main/viewport.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c
index 3f5ca79..b270630 100644
--- a/src/mesa/main/viewport.c
+++ b/src/mesa/main/viewport.c
@@ -40,8 +40,6 @@ set_viewport_no_notify(struct gl_context *ctx, unsigned idx,
                        GLfloat x, GLfloat y,
                        GLfloat width, GLfloat height)
 {
-   double scale[3], translate[3];
-
    /* clamp width and height to the implementation dependent range */
    width  = MIN2(width, (GLfloat) ctx->Const.MaxViewportWidth);
    height = MIN2(height, (GLfloat) ctx->Const.MaxViewportHeight);
@@ -236,8 +234,6 @@ static void
 set_depth_range_no_notify(struct gl_context *ctx, unsigned idx,
                           GLclampd nearval, GLclampd farval)
 {
-   double scale[3], translate[3];
-
    if (ctx->ViewportArray[idx].Near == nearval &&
        ctx->ViewportArray[idx].Far == farval)
       return;
-- 
2.1.0



More information about the mesa-dev mailing list