diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-07-10 18:24:53 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-07-11 12:42:45 +0300 |
commit | 67554cae4140634ef2b8de0f2d3a0cad1dd00310 (patch) | |
tree | cf5ecdd41f698d26b08fe5ae44b920e0f08f5572 /platform | |
parent | 06e27f905e1e89d1cef6fd6f1339400f270171d7 (diff) | |
download | qtlocation-mapboxgl-67554cae4140634ef2b8de0f2d3a0cad1dd00310.tar.gz |
Remove unused function: uv_zip_open()
Diffstat (limited to 'platform')
-rw-r--r-- | platform/default/uv_zip.c | 26 | ||||
-rw-r--r-- | platform/default/uv_zip.h | 1 |
2 files changed, 0 insertions, 27 deletions
diff --git a/platform/default/uv_zip.c b/platform/default/uv_zip.c index cb1b078988..3019477eb8 100644 --- a/platform/default/uv_zip.c +++ b/platform/default/uv_zip.c @@ -44,20 +44,6 @@ void uv__zip_file_error(uv_zip_t *zip) { uv__zip_store_error(zip, zip_file_strerror(zip->file)); } -void uv__zip_work_open(uv_work_t *req) { - uv_zip_t *zip = (uv_zip_t *)req->data; - assert(zip); - assert(!zip->archive); - - int error; - zip->archive = zip_open(zip->path, zip->flags, &error); - if (!zip->archive) { - uv__zip_open_error(zip, error); - } else { - zip->result = 0; - } -} - void uv__zip_work_fdopen(uv_work_t *req) { uv_zip_t *zip = (uv_zip_t *)req->data; assert(zip); @@ -169,18 +155,6 @@ void uv_zip_cleanup(uv_zip_t *zip) { } } -int uv_zip_open(uv_loop_t* loop, uv_zip_t *zip, const char *path, zip_flags_t flags, uv_zip_cb cb) { - assert(loop); - assert(zip); - assert(path); - assert(strlen(path)); - zip->result = 0; - zip->path = path; - zip->flags = flags; - zip->cb = cb; - return uv_queue_work(loop, &zip->work, uv__zip_work_open, uv__zip_after_work); -} - int uv_zip_fdopen(uv_loop_t* loop, uv_zip_t *zip, uv_file fd, int flags, uv_zip_cb cb) { assert(loop); assert(zip); diff --git a/platform/default/uv_zip.h b/platform/default/uv_zip.h index 5908763f09..869a415f21 100644 --- a/platform/default/uv_zip.h +++ b/platform/default/uv_zip.h @@ -30,7 +30,6 @@ struct uv_zip_s { void uv_zip_init(uv_zip_t *zip); void uv_zip_cleanup(uv_zip_t *zip); -int uv_zip_open(uv_loop_t* loop, uv_zip_t *zip, const char *path, zip_flags_t flags, uv_zip_cb cb); int uv_zip_fdopen(uv_loop_t* loop, uv_zip_t *zip, uv_file fd, int flags, uv_zip_cb cb); int uv_zip_stat(uv_loop_t* loop, uv_zip_t *zip, const char *fname, zip_flags_t flags, uv_zip_cb cb); int uv_zip_fopen(uv_loop_t* loop, uv_zip_t *zip, const char *fname, zip_flags_t flags, uv_zip_cb cb); |