com php-src: Remove unused code: ext/gd/gd.c ext/gd/php_gd. h
| From: | Christoph Michael Becker | Date: | Fri, 01 Nov 2019 23:10:46 +0000 |
| Subject: | com php-src: Remove unused code: ext/gd/gd.c ext/gd/php_gd. h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-109166@lists.php.net to get a copy of this message | ||
Commit: 88bab00199306d32863d06262d8499d7b2ebe65b
Author: Christoph M. Becker <cmbecker69@gmx.de> Fri, 1 Nov 2019 23:48:05 +0100
Parents: 34defbb784e2eb44a6e1560dd98f77ab44214b86
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=88bab00199306d32863d06262d8499d7b2ebe65b
Log:
Remove unused code
These are left-overs from image2wbmp(), which has already been removed.
Changed paths:
M ext/gd/gd.c
M ext/gd/php_gd.h
Diff:
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 7b973fff798..989a78cb0bc 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -2005,15 +2005,6 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type,
char
}
switch (image_type) {
- case PHP_GDIMG_CONVERT_WBM:
- if (q == -1) {
- q = 0;
- } else if (q < 0 || q > 255) {
- php_error_docref(NULL, E_WARNING, "Invalid threshold value '%d'. It must be
between 0 and 255", q);
- q = 0;
- }
- gdImageWBMP(im, q, fp);
- break;
case PHP_GDIMG_TYPE_GD:
(*func_p)(im, fp);
break;
@@ -2041,15 +2032,6 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type,
char
}
switch (image_type) {
- case PHP_GDIMG_CONVERT_WBM:
- if (q == -1) {
- q = 0;
- } else if (q < 0 || q > 255) {
- php_error_docref(NULL, E_WARNING, "Invalid threshold value '%d'. It must be
between 0 and 255", q);
- q = 0;
- }
- gdImageWBMP(im, q, tmp);
- break;
case PHP_GDIMG_TYPE_GD:
(*func_p)(im, tmp);
break;
diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h
index 4f083578809...8e4cff35ef5 100644
--- a/ext/gd/php_gd.h
+++ b/ext/gd/php_gd.h
@@ -33,7 +33,6 @@
#define PHP_GDIMG_TYPE_WBM 4
#define PHP_GDIMG_TYPE_XBM 5
#define PHP_GDIMG_TYPE_XPM 6
-#define PHP_GDIMG_CONVERT_WBM 7
#define PHP_GDIMG_TYPE_GD 8
#define PHP_GDIMG_TYPE_GD2 9
#define PHP_GDIMG_TYPE_GD2PART 10