summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-11-20 16:56:36 +0100
committerTor Andersson <tor.andersson@artifex.com>2013-11-26 08:42:38 +0100
commit674190060e2473593fb95bcf5924d1efdcc7129f (patch)
tree2f098c210f646f3de27edad8c27a0ec9605915e6
parent89cb2e5e2b20ddac6721e8a945d9d75f4287444e (diff)
downloadmupdf-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.
-rw-r--r--source/cbz/mucbz.c10
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));