summaryrefslogtreecommitdiff
path: root/source/fitz/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/tree.c')
-rw-r--r--source/fitz/tree.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/source/fitz/tree.c b/source/fitz/tree.c
index 070bbc71..bdd042dc 100644
--- a/source/fitz/tree.c
+++ b/source/fitz/tree.c
@@ -105,23 +105,3 @@ void fz_drop_tree(fz_context *ctx, fz_tree *node, void (*dropfunc)(fz_context *c
fz_free(ctx, node);
}
}
-
-static void print_tree_imp(fz_context *ctx, fz_tree *node, int level)
-{
- int i;
- if (node->left != &tree_sentinel)
- print_tree_imp(ctx, node->left, level + 1);
- for (i = 0; i < level; i++)
- putchar(' ');
- printf("%s = %p (%d)\n", node->key, node->value, node->level);
- if (node->right != &tree_sentinel)
- print_tree_imp(ctx, node->right, level + 1);
-}
-
-void fz_debug_tree(fz_context *ctx, fz_tree *root)
-{
- printf("--- tree dump ---\n");
- if (root && root != &tree_sentinel)
- print_tree_imp(ctx, root, 0);
- printf("---\n");
-}