diff --git a/Source/util.cpp b/Source/util.cpp index 8fa98ce0..bb645e95 100644 --- a/Source/util.cpp +++ b/Source/util.cpp @@ -555,16 +555,6 @@ FILE *my_fopen(const char *path, const char *mode) my_convert_free(converted_path); return result; } - -int my_glob(const char *pattern, int flags, - int errfunc(const char * epath, int eerrno), glob_t *pglob) -{ - char *converted_pattern = my_convert(pattern); - - int result = glob(converted_pattern, flags, errfunc, pglob); - my_convert_free(converted_pattern); - return result; -} #endif//!_WIN32 void *operator new(size_t size) { diff --git a/Source/util.h b/Source/util.h index dc280f6d..6911b836 100644 --- a/Source/util.h +++ b/Source/util.h @@ -9,7 +9,6 @@ #ifndef _WIN32 # include # include -# include #endif @@ -64,13 +63,11 @@ int my_glob(const char *pattern, int flags, int errfunc(const char * epath, int eerrno), glob_t *pglob); #define FOPEN(a, b) my_fopen(a, b) -#define GLOB(a, b, c, d) my_glob(a, b, c, d) #define OPEN(a, b) my_open(a, b) #else #define FOPEN(a, b) fopen(a, b) -#define GLOB(a, b, c, d) glob(a, b, c, d) #define OPEN(a, b) open(a, b) #endif