diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-04-26 14:30:32 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-04-27 15:12:03 +0200 |
commit | cabf4489896a2a978361eb6e1df4b4aef81193f4 (patch) | |
tree | 42c304158abc24dcec776b1a38f14f4db6eaa95f /source/fitz | |
parent | 2208034206c6085fa07063bcc6fdc834d6472912 (diff) | |
download | mupdf-cabf4489896a2a978361eb6e1df4b4aef81193f4.tar.xz |
Move fz_outline and pdf_xref debug printing to pdfshow.c
That's where it's actually being used.
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/outline.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/source/fitz/outline.c b/source/fitz/outline.c index 4948110c..ba894ab0 100644 --- a/source/fitz/outline.c +++ b/source/fitz/outline.c @@ -27,50 +27,3 @@ fz_drop_outline(fz_context *ctx, fz_outline *outline) outline = next; } } - -static void -fz_debug_outline_xml_imp(fz_context *ctx, fz_output *out, fz_outline *outline, int level) -{ - while (outline) - { - fz_write_printf(ctx, out, "<outline title=%q uri=\"%s\"", outline->title, outline->uri); - if (outline->down) - { - fz_write_printf(ctx, out, ">\n"); - fz_debug_outline_xml_imp(ctx, out, outline->down, level + 1); - fz_write_printf(ctx, out, "</outline>\n"); - } - else - { - fz_write_printf(ctx, out, " />\n"); - } - outline = outline->next; - } -} - -void -fz_print_outline_xml(fz_context *ctx, fz_output *out, fz_outline *outline) -{ - fz_debug_outline_xml_imp(ctx, out, outline, 0); -} - -static void -fz_print_outline_imp(fz_context *ctx, fz_output *out, fz_outline *outline, int level) -{ - int i; - while (outline) - { - for (i = 0; i < level; i++) - fz_write_printf(ctx, out, "\t"); - fz_write_printf(ctx, out, "%s\t%s\n", outline->title, outline->uri); - if (outline->down) - fz_print_outline_imp(ctx, out, outline->down, level + 1); - outline = outline->next; - } -} - -void -fz_print_outline(fz_context *ctx, fz_output *out, fz_outline *outline) -{ - fz_print_outline_imp(ctx, out, outline, 0); -} |