summaryrefslogtreecommitdiff
path: root/src/drivers/Posix
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-10-04 12:21:46 +0000
committerManolo Gouy <Manolo>2017-10-04 12:21:46 +0000
commit7a9d5be6cb2ae831b3c2409788d3a31aa61d62b9 (patch)
tree69d644c3dad77a599f4f85dbd376bd43a31cf94d /src/drivers/Posix
parent5e6bf76b0a75f84dcdaa277d1aef7ab76e2d0631 (diff)
Undo commit at r.12475 that is not adequate.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12476 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Posix')
-rw-r--r--src/drivers/Posix/Fl_Posix_System_Driver.H1
-rw-r--r--src/drivers/Posix/Fl_Posix_System_Driver.cxx15
2 files changed, 0 insertions, 16 deletions
diff --git a/src/drivers/Posix/Fl_Posix_System_Driver.H b/src/drivers/Posix/Fl_Posix_System_Driver.H
index 9ef8a2909..5b2060283 100644
--- a/src/drivers/Posix/Fl_Posix_System_Driver.H
+++ b/src/drivers/Posix/Fl_Posix_System_Driver.H
@@ -75,7 +75,6 @@ public:
virtual const char *home_directory_name() { return ::getenv("HOME"); }
virtual int dot_file_hidden() {return 1;}
virtual void gettime(time_t *sec, int *usec);
- virtual void* gzopen(const char *fname, const char *mode);
};
#endif // FL_POSIX_SYSTEM_DRIVER_H
diff --git a/src/drivers/Posix/Fl_Posix_System_Driver.cxx b/src/drivers/Posix/Fl_Posix_System_Driver.cxx
index f603c2d17..c2576b268 100644
--- a/src/drivers/Posix/Fl_Posix_System_Driver.cxx
+++ b/src/drivers/Posix/Fl_Posix_System_Driver.cxx
@@ -34,9 +34,6 @@
#include <pwd.h>
#include <unistd.h>
#include <time.h>
-#if defined(HAVE_LIBZ)
-# include <zlib.h>
-#endif
//
// Define missing POSIX/XPG4 macros as needed...
@@ -102,18 +99,6 @@ void Fl_Posix_System_Driver::gettime(time_t *sec, int *usec) {
*usec = tv.tv_usec;
}
-void* Fl_Posix_System_Driver::gzopen(const char *fname, const char *mode) {
-#if defined(HAVE_LIBZ)
- FILE *in = fl_fopen(fname, mode);
- if (!in) return NULL;
- int fd = dup(fileno(in));
- fclose(in);
- return gzdopen(fd, mode);
-#else
- return NULL;
-#endif
-}
-
//
// End of "$Id$".
//