]> granicus.if.org Git - php/commitdiff
#64710, kill unused vars
authorPierre Joye <pierre.php@gmail.com>
Fri, 26 Apr 2013 06:09:19 +0000 (08:09 +0200)
committerPierre Joye <pierre.php@gmail.com>
Fri, 26 Apr 2013 06:09:19 +0000 (08:09 +0200)
ext/gd/libgd/gd.c

index 093e35a53b1b03e287dc0d22a36201343cccc3fa..794d276dfa8130ec3bd45951add8d9be1a14478c 100644 (file)
@@ -2352,8 +2352,6 @@ void gdImageCopyResized (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int
        int colorMap[gdMaxColors];
        /* Stretch vectors */
        int *stx, *sty;
-       /* We only need to use floating point to determine the correct stretch vector for one line's worth. */
-       double accum;
        
        if (overflow2(sizeof(int), srcW)) {
                return;
@@ -2364,7 +2362,6 @@ void gdImageCopyResized (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int
 
        stx = (int *) gdMalloc (sizeof (int) * srcW);
        sty = (int *) gdMalloc (sizeof (int) * srcH);
-       accum = 0;
 
        /* Fixed by Mao Morimoto 2.0.16 */
        for (i = 0; (i < srcW); i++) {