[mapserver-commits] r9320 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Sep 18 21:18:37 EDT 2009


Author: assefa
Date: 2009-09-18 21:18:37 -0400 (Fri, 18 Sep 2009)
New Revision: 9320

Modified:
   trunk/mapserver/mapgraticule.c
Log:
correct warnings

Modified: trunk/mapserver/mapgraticule.c
===================================================================
--- trunk/mapserver/mapgraticule.c	2009-09-19 01:02:58 UTC (rev 9319)
+++ trunk/mapserver/mapgraticule.c	2009-09-19 01:18:37 UTC (rev 9320)
@@ -619,15 +619,13 @@
     
     shapeObj    shapegrid, tmpshape;
     rectObj     searchrect;
-    int         status, retcode=MS_SUCCESS;
+    int         status;
     pointObj oFirstPoint;
     pointObj oLastPoint;
     lineObj oLineObj;
-    int bHori = 0;
     rectObj cliprect;
     graticuleObj   *pInfo  = NULL;
     double dfTmp;
-    char *pszTmpText = NULL;
     graticuleIntersectionObj *psValues = NULL;
     int i=0;
 
@@ -737,16 +735,8 @@
           oFirstPoint.y = shapegrid.line[iTmpLine].point[0].y;
           oLineObj = shapegrid.line[iTmpLine];
           oLastPoint.x = oLineObj.point[oLineObj.numpoints-1].x;
-          oLastPoint.y = oLineObj.point[oLineObj.numpoints-1].y;
+          oLastPoint.y = oLineObj.point[oLineObj.numpoints-1].y;          
 
-
-          //if (layer->numclasses > 0 && layer->class[0]->numstyles > 0)
-          
-          /*horzontal or Vertical*/
-          //bHori = 0;
-          //if (abs(oFirstPoint.x - oLastPoint.x) > abs(oFirstPoint.y - oLastPoint.y))
-          //bHori = 1;
-
           if ( pInfo->bvertical) /*vertical*/
             {
               /*SHAPES ARE DRAWN FROM BOTTOM TO TOP.*/



More information about the mapserver-commits mailing list