[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - vcl/opengl

Caolán McNamara caolanm at redhat.com
Tue Dec 16 02:17:27 PST 2014


 vcl/opengl/gdiimpl.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 34c09076e744ac347502fb54417946bf198392b7
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Dec 15 12:55:49 2014 +0000

    -Werror=unused-but-set-variable
    
    Change-Id: Ia65754272ff5c1661241dd503cef23c7a89b660e
    (cherry picked from commit 580e21154196a4b1f3e48d3d4d2395d1c182c580)

diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index 0e14fad..f992136 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -500,7 +500,6 @@ void OpenGLSalGraphicsImpl::DrawLineAA( long nX1, long nY1, long nX2, long nY2 )
     //determine angle of the line to horizontal
     double tx=0,ty=0; //core thinkness of a line
     double Rx=0,Ry=0; //fading edge of a line
-    double cx=0,cy=0; //cap of a line
     double dx=x2-x1;
     double dy=y2-y1;
     if ( w < 3)
@@ -541,7 +540,6 @@ void OpenGLSalGraphicsImpl::DrawLineAA( long nX1, long nY1, long nX2, long nY2 )
         double L=sqrt(dx*dx+dy*dy);
         dx/=L;
         dy/=L;
-        cx=-0.6*dy; cy=0.6*dx;
         tx=t*dx; ty=t*dy;
         Rx=R*dx; Ry=R*dy;
     }


More information about the Libreoffice-commits mailing list