summaryrefslogtreecommitdiff
path: root/source/xps
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-04-24 13:39:26 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-04-27 15:12:03 +0200
commit9a725130b9b16daa332f8502e24eac9cab4cf9b2 (patch)
tree2068a7fde1f170411f90674049b902dc06ecaa13 /source/xps
parentaf7461adcd082d60276b747eda66fec2684f3701 (diff)
downloadmupdf-9a725130b9b16daa332f8502e24eac9cab4cf9b2.tar.xz
Remove debug printing code.
It's not used, so prone to bit rot. Better to purge it.
Diffstat (limited to 'source/xps')
-rw-r--r--source/xps/xps-doc.c22
-rw-r--r--source/xps/xps-resource.c18
2 files changed, 0 insertions, 40 deletions
diff --git a/source/xps/xps-doc.c b/source/xps/xps-doc.c
index d13e8fb0..95be593f 100644
--- a/source/xps/xps-doc.c
+++ b/source/xps/xps-doc.c
@@ -37,28 +37,6 @@ xps_rels_for_part(fz_context *ctx, xps_document *doc, char *buf, char *name, int
* which parts correspond to actual pages, and the page order.
*/
-void
-xps_print_page_list(fz_context *ctx, xps_document *doc)
-{
- xps_fixdoc *fixdoc = doc->first_fixdoc;
- xps_fixpage *page = doc->first_page;
-
- if (doc->start_part)
- printf("start part %s\n", doc->start_part);
-
- while (fixdoc)
- {
- printf("fixdoc %s\n", fixdoc->name);
- fixdoc = fixdoc->next;
- }
-
- while (page)
- {
- printf("page[%d] %s w=%d h=%d\n", page->number, page->name, page->width, page->height);
- page = page->next;
- }
-}
-
static void
xps_add_fixed_document(fz_context *ctx, xps_document *doc, char *name)
{
diff --git a/source/xps/xps-resource.c b/source/xps/xps-resource.c
index dcc83fb3..29ed864a 100644
--- a/source/xps/xps-resource.c
+++ b/source/xps/xps-resource.c
@@ -154,21 +154,3 @@ xps_drop_resource_dictionary(fz_context *ctx, xps_document *doc, xps_resource *d
dict = next;
}
}
-
-void
-xps_print_resource_dictionary(fz_context *ctx, xps_document *doc, xps_resource *dict)
-{
- while (dict)
- {
- if (dict->base_uri)
- printf("URI = '%s'\n", dict->base_uri);
- printf("KEY = '%s' VAL = %p\n", dict->name, dict->data);
- if (dict->parent)
- {
- printf("PARENT = {\n");
- xps_print_resource_dictionary(ctx, doc, dict->parent);
- printf("}\n");
- }
- dict = dict->next;
- }
-}