diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2013-11-20 16:56:36 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2013-11-26 08:42:38 +0100 |
commit | 674190060e2473593fb95bcf5924d1efdcc7129f (patch) | |
tree | 2f098c210f646f3de27edad8c27a0ec9605915e6 /source/cbz/mucbz.c | |
parent | 89cb2e5e2b20ddac6721e8a945d9d75f4287444e (diff) | |
download | mupdf-674190060e2473593fb95bcf5924d1efdcc7129f.tar.xz |
Don't sort cbz entries.
Rely on the document creator to have sorted them rather than risk
getting the wrong page order.
Diffstat (limited to 'source/cbz/mucbz.c')
-rw-r--r-- | source/cbz/mucbz.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c index bbc8a5fe..5247a4ee 100644 --- a/source/cbz/mucbz.c +++ b/source/cbz/mucbz.c @@ -163,14 +163,6 @@ cbz_read_zip_entry(cbz_document *doc, int offset, int *sizep) return NULL; /* not reached */ } -static int -cbz_compare_entries(const void *a_, const void *b_) -{ - const cbz_entry *a = a_; - const cbz_entry *b = b_; - return strcmp(a->name, b->name); -} - static void cbz_read_zip_dir_imp(cbz_document *doc, int startoffset) { @@ -231,8 +223,6 @@ cbz_read_zip_dir_imp(cbz_document *doc, int startoffset) fz_seek(file, commentsize, 1); } - qsort(doc->entry, count, sizeof(cbz_entry), cbz_compare_entries); - doc->page_count = 0; doc->page = fz_malloc_array(ctx, count, sizeof(int)); |