]> granicus.if.org Git - php/commitdiff
Remove unused code
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 13 Oct 2016 13:28:06 +0000 (15:28 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 13 Oct 2016 13:35:10 +0000 (15:35 +0200)
There is no gif2wbmp() or such, and it is highly unlikely that it'll be
ever added, so we remove the unused code.

ext/gd/gd.c

index d214f3ccc11b663689e315ca4f8fd970186566f6..a1486c005b8a15d5fe2421eea36bf191f0bcbccf 100644 (file)
@@ -4123,15 +4123,6 @@ static void _php_image_convert(INTERNAL_FUNCTION_PARAMETERS, int image_type )
        }
 
        switch (image_type) {
-               case PHP_GDIMG_TYPE_GIF:
-                       im_org = gdImageCreateFromGif(org);
-                       if (im_org == NULL) {
-                               php_error_docref(NULL, E_WARNING, "Unable to open '%s' Not a valid GIF file", fn_dest);
-                fclose(org);
-                fclose(dest);
-                               RETURN_FALSE;
-                       }
-                       break;
 
 #ifdef HAVE_GD_JPG
                case PHP_GDIMG_TYPE_JPG: