Skip to content

Commit 88bab00

Browse files
committed
Remove unused code
These are left-overs from image2wbmp(), which has already been removed.
1 parent 34defbb commit 88bab00

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

ext/gd/gd.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2005,15 +2005,6 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char
20052005
}
20062006

20072007
switch (image_type) {
2008-
case PHP_GDIMG_CONVERT_WBM:
2009-
if (q == -1) {
2010-
q = 0;
2011-
} else if (q < 0 || q > 255) {
2012-
php_error_docref(NULL, E_WARNING, "Invalid threshold value '%d'. It must be between 0 and 255", q);
2013-
q = 0;
2014-
}
2015-
gdImageWBMP(im, q, fp);
2016-
break;
20172008
case PHP_GDIMG_TYPE_GD:
20182009
(*func_p)(im, fp);
20192010
break;
@@ -2041,15 +2032,6 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char
20412032
}
20422033

20432034
switch (image_type) {
2044-
case PHP_GDIMG_CONVERT_WBM:
2045-
if (q == -1) {
2046-
q = 0;
2047-
} else if (q < 0 || q > 255) {
2048-
php_error_docref(NULL, E_WARNING, "Invalid threshold value '%d'. It must be between 0 and 255", q);
2049-
q = 0;
2050-
}
2051-
gdImageWBMP(im, q, tmp);
2052-
break;
20532035
case PHP_GDIMG_TYPE_GD:
20542036
(*func_p)(im, tmp);
20552037
break;

ext/gd/php_gd.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#define PHP_GDIMG_TYPE_WBM 4
3434
#define PHP_GDIMG_TYPE_XBM 5
3535
#define PHP_GDIMG_TYPE_XPM 6
36-
#define PHP_GDIMG_CONVERT_WBM 7
3736
#define PHP_GDIMG_TYPE_GD 8
3837
#define PHP_GDIMG_TYPE_GD2 9
3938
#define PHP_GDIMG_TYPE_GD2PART 10

0 commit comments

Comments
 (0)