From: Christoph M. Becker Date: Thu, 13 Oct 2016 13:28:06 +0000 (+0200) Subject: Remove unused code X-Git-Tag: php-7.2.0alpha1~1139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c31eb5a407a57515df0ef222283b21d26cfe927d;p=php Remove unused code There is no gif2wbmp() or such, and it is highly unlikely that it'll be ever added, so we remove the unused code. --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index d214f3ccc1..a1486c005b 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -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: