From edaecd1e266a57de6e8d4961ee70353f7bd6b05d Mon Sep 17 00:00:00 2001 From: HALX99 Date: Fri, 11 Oct 2019 01:19:21 -0700 Subject: [PATCH] Remove incompatible API 'unzOpenBuffer' width minizip-1.2.0 (#381) * Remove * Update unzip.cpp --- unzip/unzip.cpp | 8 -------- unzip/unzip.h | 1 - 2 files changed, 9 deletions(-) diff --git a/unzip/unzip.cpp b/unzip/unzip.cpp index 094052e2b1..402b9ebc23 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 bd9a9e1c52..56f40c9c5b 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