From db83933f585d156db2ae35d9c5649bb21b4555af Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 13 Oct 2017 07:17:01 +0000 Subject: Remove the Fl_SVG_Image::fl_gzopen() member function that is less useful with the new fl_open_ext() function. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12491 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_SVG_Image.cxx | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/Fl_SVG_Image.cxx') diff --git a/src/Fl_SVG_Image.cxx b/src/Fl_SVG_Image.cxx index 3c8957afd..45b0f74c4 100644 --- a/src/Fl_SVG_Image.cxx +++ b/src/Fl_SVG_Image.cxx @@ -76,24 +76,15 @@ float Fl_SVG_Image::svg_scaling_(int W, int H) { return (f1 < f2) ? f1 : f2; } -/** Opens for reading a potentially gzip'ed file identified by a UTF-8 encoded filename. */ -void* Fl_SVG_Image::fl_gzopen(const char *fname) { -#if defined(HAVE_LIBZ) - int fd = fl_open_ext(fname, 0, 0); - if (fd < 0) return NULL; - return gzdopen(fd, "r"); -#else - return NULL; -#endif // HAVE_LIBZ -} - #if defined(HAVE_LIBZ) static char *svg_inflate(const char *fname) { struct stat b; fl_stat(fname, &b); long size = b.st_size; - gzFile gzf = (gzFile)Fl_SVG_Image::fl_gzopen(fname); + int fd = fl_open_ext(fname, 0, 0); + if (fd < 0) return NULL; + gzFile gzf = gzdopen(fd, "r"); if (!gzf) return NULL; int l; int direct = gzdirect(gzf); -- cgit v1.2.3