diff --git a/unzip/unzip.cpp b/unzip/unzip.cpp index 094052e2b..402b9ebc2 100644 --- a/unzip/unzip.cpp +++ b/unzip/unzip.cpp @@ -534,14 +534,6 @@ extern unzFile ZEXPORT unzOpen64(const void *path) return unzOpenInternal(path, NULL); } -extern unzFile ZEXPORT unzOpenBuffer(const void* buffer, uLong size) -{ - zlib_filefunc_def memory_file = { 0 }; - ourmemory_s oms = { (char*)const_cast(buffer), static_cast(size), 0, 0, 0}; - fill_memory_filefunc(&memory_file, &oms); - return unzOpen2(nullptr, &memory_file); -} - extern int ZEXPORT unzClose(unzFile file) { unz64_internal *s; diff --git a/unzip/unzip.h b/unzip/unzip.h index bd9a9e1c5..56f40c9c5 100644 --- a/unzip/unzip.h +++ b/unzip/unzip.h @@ -119,7 +119,6 @@ typedef struct unz_file_info_s extern unzFile ZEXPORT unzOpen(const char *path); extern unzFile ZEXPORT unzOpen64(const void *path); -extern unzFile ZEXPORT unzOpenBuffer(const void* buffer, uLong size); /* Open a Zip file. path should contain the full path (by example, on a Windows XP computer