Commit:    b5902b6c9de4886a1e66e93c6aaabc9eb4ee768c
Author:    Pierre Joye <pierre....@gmail.com>         Fri, 26 Apr 2013 08:06:34 
+0200
Parents:   afe46d4d47d5ef7ad80f55a6776b3f4b88f452bf
Branches:  PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=b5902b6c9de4886a1e66e93c6aaabc9eb4ee768c

Log:
#64710, kill unused vars

Bugs:
https://bugs.php.net/64710

Changed paths:
  M  ext/gd/libgd/gd.c


Diff:
diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c
index cb45c0e..093e35a 100644
--- a/ext/gd/libgd/gd.c
+++ b/ext/gd/libgd/gd.c
@@ -1958,7 +1958,6 @@ static void _gdImageFillTiled(gdImagePtr im, int x, int 
y, int nc)
 {
        int i, l, x1, x2, dy;
        int oc;   /* old pixel value */
-       int tiled;
        int wx2,wy2;
        /* stack of filled segments */
        struct seg *stack;
@@ -1970,7 +1969,6 @@ static void _gdImageFillTiled(gdImagePtr im, int x, int 
y, int nc)
        }
 
        wx2=im->sx;wy2=im->sy;
-       tiled = nc==gdTiled;
 
        nc =  gdImageTileGet(im,x,y);
 
@@ -2035,7 +2033,6 @@ void gdImageRectangle (gdImagePtr im, int x1, int y1, int 
x2, int y2, int color)
 {
        int x1h = x1, x1v = x1, y1h = y1, y1v = y1, x2h = x2, x2v = x2, y2h = 
y2, y2v = y2;
        int thick = im->thick;
-       int half1 = 1;
        int t;
 
        if (x1 == x2 && y1 == y2 && thick == 1) {
@@ -2057,7 +2054,7 @@ void gdImageRectangle (gdImagePtr im, int x1, int y1, int 
x2, int y2, int color)
        if (thick > 1) {
                int cx, cy, x1ul, y1ul, x2lr, y2lr;
                int half = thick >> 1;
-               half1 = thick - half;
+
                x1ul = x1 - half;
                y1ul = y1 - half;


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to