summaryrefslogtreecommitdiff
path: root/src/Fl_SVG_Image.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-10-13 07:17:01 +0000
committerManolo Gouy <Manolo>2017-10-13 07:17:01 +0000
commitdb83933f585d156db2ae35d9c5649bb21b4555af (patch)
tree1d47aeaaca39a6093be40d930ddd8cb4941b9b92 /src/Fl_SVG_Image.cxx
parentb5027d4f29e057f514a333ec188dc5b86a1cc8e8 (diff)
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
Diffstat (limited to 'src/Fl_SVG_Image.cxx')
-rw-r--r--src/Fl_SVG_Image.cxx15
1 files changed, 3 insertions, 12 deletions
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);