summaryrefslogtreecommitdiff
path: root/source/html/epub-doc.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-04-05 21:51:09 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-04-06 00:06:45 +0200
commit5f4ca48f9b46098af709642b283496ff37880c21 (patch)
treeb2374398d463575c8a3955028a8bfc878527a6d1 /source/html/epub-doc.c
parent750950784512ee3022ae0e65ce3608f04dadbae2 (diff)
downloadmupdf-5f4ca48f9b46098af709642b283496ff37880c21.tar.xz
epub: Remove debug logging printfs.
Diffstat (limited to 'source/html/epub-doc.c')
-rw-r--r--source/html/epub-doc.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/source/html/epub-doc.c b/source/html/epub-doc.c
index a3451175..e080e7f9 100644
--- a/source/html/epub-doc.c
+++ b/source/html/epub-doc.c
@@ -64,7 +64,6 @@ epub_layout(fz_context *ctx, fz_document *doc_, float w, float h, float em)
epub_chapter *ch;
int count = 0;
- printf("epub: laying out chapters.\n");
for (ch = doc->spine; ch; ch = ch->next)
{
ch->start = count;
@@ -80,8 +79,6 @@ epub_layout(fz_context *ctx, fz_document *doc_, float w, float h, float em)
}
epub_update_link_dests(ctx, doc, doc->outline);
-
- printf("epub: done.\n");
}
static int
@@ -344,8 +341,6 @@ epub_parse_header(fz_context *ctx, epub_document *doc)
if (!full_path)
fz_throw(ctx, FZ_ERROR_GENERIC, "cannot find root file in EPUB");
- printf("epub: found root: %s\n", full_path);
-
fz_dirname(base_uri, full_path, sizeof base_uri);
/* parse OPF to find NCX and spine */
@@ -372,7 +367,6 @@ epub_parse_header(fz_context *ctx, epub_document *doc)
if (path_from_idref(ncx, manifest, base_uri, fz_xml_att(spine, "toc"), sizeof ncx))
{
- printf("epub: found outline: %s\n", ncx);
epub_parse_ncx(ctx, doc, ncx);
}
@@ -382,7 +376,6 @@ epub_parse_header(fz_context *ctx, epub_document *doc)
{
if (path_from_idref(s, manifest, base_uri, fz_xml_att(itemref, "idref"), sizeof s))
{
- printf("epub: found spine %s\n", s);
if (!head)
head = tail = epub_parse_chapter(ctx, doc, s);
else
@@ -393,8 +386,6 @@ epub_parse_header(fz_context *ctx, epub_document *doc)
doc->spine = head;
- printf("epub: done.\n");
-
fz_drop_xml(ctx, container_xml);
fz_drop_xml(ctx, content_opf);
}