[mapserver-commits] r9508 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Oct 23 13:59:44 EDT 2009


Author: tbonfort
Date: 2009-10-23 13:59:43 -0400 (Fri, 23 Oct 2009)
New Revision: 9508

Modified:
   trunk/mapserver/mapprimitive.c
Log:
remove unused code block


Modified: trunk/mapserver/mapprimitive.c
===================================================================
--- trunk/mapserver/mapprimitive.c	2009-10-23 16:09:37 UTC (rev 9507)
+++ trunk/mapserver/mapprimitive.c	2009-10-23 17:59:43 UTC (rev 9508)
@@ -1585,7 +1585,6 @@
   double dx, dy, w, cos_t, sin_t;
 
   labelPathObj *labelpath = NULL;
-  char *font = NULL;
 
   /* Line smoothing kernel */
   double kernel[] = {0.1, 0.2, 2, 0.2, 0.1}; /* {1.5, 2, 15, 2, 1.5}; */
@@ -1633,15 +1632,6 @@
   size = MS_MIN(size, label->maxsize*img->resolutionfactor);
   scalefactor = size / label->size;
 
-  font = msLookupHashTable(&(fontset->fonts), label->font);
-  if(!font) {
-    if(label->font) 
-      msSetError(MS_TTFERR, "Requested font (%s) not found.", "msPolylineLabelPathSegment()", label->font);
-    else
-      msSetError(MS_TTFERR, "Requested font (NULL) not found.", "msPolylineLabelPathSegment()");
-    goto FAILURE;
-  }
-  
   text_length = letterspacing * (bbox.maxx - bbox.minx);
 
   /* 



More information about the mapserver-commits mailing list