com php-src: Remove unused code: ext/gd/gd.c

From: Date: Thu, 13 Oct 2016 13:35:10 +0000
Subject: com php-src: Remove unused code: ext/gd/gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95029@lists.php.net to get a copy of this message
Commit: c31eb5a407a57515df0ef222283b21d26cfe927d Author: Christoph M. Becker <cmbecker69@gmx.de> Thu, 13 Oct 2016 15:28:06 +0200 Parents: 46eea4e41579cff2091e4e60e29cec4c000eac4a Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c31eb5a407a57515df0ef222283b21d26cfe927d Log: 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. Changed paths: M ext/gd/gd.c Diff: diff --git a/ext/gd/gd.c b/ext/gd/gd.c index d214f3c..a1486c0 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:

« previous php.cvs (#95029) next »