From: Christoph M. Becker Date: Fri, 9 Feb 2018 16:39:24 +0000 (+0100) Subject: Remove unused function X-Git-Tag: php-7.3.0alpha1~468^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8ba185cf92c4138704a3c3b663a7a83d96e897f;p=php Remove unused function --- diff --git a/ext/gd/gd_compat.c b/ext/gd/gd_compat.c index 51020a3c71..aa1d51700d 100644 --- a/ext/gd/gd_compat.c +++ b/ext/gd/gd_compat.c @@ -17,11 +17,6 @@ #include "php.h" #ifdef HAVE_GD_JPG -int gdJpegGetVersionInt() -{ - return JPEG_LIB_VERSION; -} - const char * gdJpegGetVersionString() { switch(JPEG_LIB_VERSION) { diff --git a/ext/gd/gd_compat.h b/ext/gd/gd_compat.h index db757f5988..570180813c 100644 --- a/ext/gd/gd_compat.h +++ b/ext/gd/gd_compat.h @@ -5,7 +5,6 @@ /* from gd_compat.c */ const char * gdPngGetVersionString(); const char * gdJpegGetVersionString(); -int gdJpegGetVersionInt(); #endif /* from gd_compat.c of libgd/gd_security.c */ diff --git a/ext/gd/libgd/gd.h b/ext/gd/libgd/gd.h index 940650e9f1..c8c6d29c18 100644 --- a/ext/gd/libgd/gd.h +++ b/ext/gd/libgd/gd.h @@ -378,10 +378,8 @@ gdImagePtr gdImageCreateFromBmp (FILE * inFile); gdImagePtr gdImageCreateFromBmpPtr (int size, void *data); gdImagePtr gdImageCreateFromBmpCtx (gdIOCtxPtr infile); -int gdJpegGetVersionInt(); const char * gdPngGetVersionString(); -int gdJpegGetVersionInt(); const char * gdJpegGetVersionString(); /* A custom data source. */ diff --git a/ext/gd/libgd/gd_jpeg.c b/ext/gd/libgd/gd_jpeg.c index 23d161631d..6d97cc7bc0 100644 --- a/ext/gd/libgd/gd_jpeg.c +++ b/ext/gd/libgd/gd_jpeg.c @@ -103,11 +103,6 @@ static void fatal_jpeg_error (j_common_ptr cinfo) exit (99); } -int gdJpegGetVersionInt() -{ - return JPEG_LIB_VERSION; -} - const char * gdJpegGetVersionString() { switch(JPEG_LIB_VERSION) {