summaryrefslogtreecommitdiff
path: root/src/bytecode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytecode.c')
-rw-r--r--src/bytecode.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/bytecode.c b/src/bytecode.c
index 74d1a25f..ee238b31 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -151,25 +151,6 @@ void colm_parser_set_context( program_t *prg, tree_t **sp, parser_t *parser, str
parser->pda_run->context = val;
}
-static head_t *tree_to_str( program_t *prg, tree_t **sp, tree_t *tree, int trim, int attrs )
-{
- /* Collect the tree data. */
- str_collect_t collect;
- init_str_collect( &collect );
-
- if ( attrs )
- colm_print_tree_collect_a( prg, sp, &collect, tree, trim );
- else
- colm_print_tree_collect( prg, sp, &collect, tree, trim );
-
- /* Set up the input stream. */
- head_t *ret = string_alloc_full( prg, collect.data, collect.length );
-
- str_collect_destroy( &collect );
-
- return ret;
-}
-
static head_t *tree_to_str_xml( program_t *prg, tree_t **sp, tree_t *tree, int trim, int attrs )
{
/* Collect the tree data. */