[Libreoffice-commits] core.git: vcl/opengl
Caolán McNamara
caolanm at redhat.com
Mon Dec 15 04:56:28 PST 2014
vcl/opengl/gdiimpl.cxx | 2 --
1 file changed, 2 deletions(-)
New commits:
commit 580e21154196a4b1f3e48d3d4d2395d1c182c580
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
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index 137a84d..09ffbf6 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -472,7 +472,6 @@ void OpenGLSalGraphicsImpl::DrawLine( 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)
@@ -513,7 +512,6 @@ void OpenGLSalGraphicsImpl::DrawLine( 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