From c31eb5a407a57515df0ef222283b21d26cfe927d Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Thu, 13 Oct 2016 15:28:06 +0200 Subject: [PATCH] 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. --- ext/gd/gd.c | 9 --------- 1 file changed, 9 deletions(-) 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: -- 2.50.1