Skip to content

Commit d84ad6a

Browse files
authored
ext/gd: remove _php_image_output unused argument (#21138)
1 parent 46e8cb9 commit d84ad6a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ext/gd/gd.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static void php_image_filter_scatter(INTERNAL_FUNCTION_PARAMETERS);
120120
/* End Section filters declarations */
121121
static gdImagePtr _php_image_create_from_string(zend_string *Data, const char *tn, gdImagePtr (*ioctx_func_p)(gdIOCtxPtr));
122122
static void _php_image_create_from(INTERNAL_FUNCTION_PARAMETERS, int image_type, const char *tn, gdImagePtr (*func_p)(FILE *), gdImagePtr (*ioctx_func_p)(gdIOCtxPtr));
123-
static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, const char *tn);
123+
static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type);
124124
static gdIOCtx *create_stream_context(php_stream *stream, int close_stream);
125125
static gdIOCtx *create_output_context(zval *to_zval, uint32_t arg_num);
126126
static int _php_image_type(zend_string *data);
@@ -1729,7 +1729,7 @@ PHP_FUNCTION(imagecreatefromtga)
17291729
/* }}} */
17301730

17311731
/* {{{ _php_image_output */
1732-
static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, const char *tn)
1732+
static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type)
17331733
{
17341734
zval *imgind;
17351735
char *file = NULL;
@@ -2102,14 +2102,14 @@ PHP_FUNCTION(imagewbmp)
21022102
/* {{{ Output GD image to browser or file */
21032103
PHP_FUNCTION(imagegd)
21042104
{
2105-
_php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GD, "GD");
2105+
_php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GD);
21062106
}
21072107
/* }}} */
21082108

21092109
/* {{{ Output GD2 image to browser or file */
21102110
PHP_FUNCTION(imagegd2)
21112111
{
2112-
_php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GD2, "GD2");
2112+
_php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GD2);
21132113
}
21142114
/* }}} */
21152115

0 commit comments

Comments
 (0)