Commits

Anonymous committed 45c5c3b

removed unused codes

  • Participants
  • Parent commits 9da2955
  • Branches GD-2.0

Comments (0)

Files changed (1)

 /* That could help to adjust intersections  to produce a nice */
 /* interior_extrema. */
 
-#if 0
-static void horizontalLine(gdImagePtr im, int minx, int maxx, int y,
-	int fill_color);
-#endif
-
 BGD_DECLARE(void) gdImageFilledPolygon (gdImagePtr im, gdPointPtr p, int n, int c)
 {
   int i;
       }
       for (i = 0; (i < (ints)); i += 2)
 	{
-#if 0
-          int minx = im->polyInts[i];
-          int maxx = im->polyInts[i + 1];
-#endif
           /* 2.0.29: back to gdImageLine to prevent segfaults when
             performing a pattern fill */
           gdImageLine (im, im->polyInts[i], y, im->polyInts[i + 1], y,
   } 
 }
 
-#if 0
-static void horizontalLine(gdImagePtr im, int minx, int maxx, int y,
-	int fill_color)
-{
-  /* 2.0.27: potential corruption fixed by John Ellson */
-  if (minx < im->cx1) minx = im->cx1;
-  if (maxx < minx) maxx = minx;
-  if (maxx > im->cx2) maxx = im->cx2;
-  if (minx > maxx) minx = maxx;
-                                                                                                                                        
-  if (y < im->cy1) y = im->cy1;
-  if (y > im->cy2) y = im->cy2;
-                                                                                                                                        
-  if (im->trueColor) {
-    while (minx <= maxx) {
-      im->tpixels[y][minx++] = fill_color;
-    }
-  } else {
-    while (minx <= maxx) {
-      im->pixels[y][minx++] = fill_color;
-    }
-  }
-}
-#endif
-
 static void gdImageSetAAPixelColor(gdImagePtr im, int x, int y, int color, int t);
 
 BGD_DECLARE(void) gdImageSetStyle (gdImagePtr im, int *style, int noOfPixels)