From fbc356e504c162663b33162225ebd2fc16b6076b Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Mon, 14 May 2018 18:18:45 -0400 Subject: merged two cases in stream_append_text --- src/bytecode.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/bytecode.c') diff --git a/src/bytecode.c b/src/bytecode.c index 880c89c3..a5fc1ea3 100644 --- a/src/bytecode.c +++ b/src/bytecode.c @@ -219,18 +219,7 @@ static word_t stream_append_text( program_t *prg, tree_t **sp, stream_t *dest, t long length = 0; struct stream_impl *impl = stream_to_impl( dest ); - if ( input->id == LEL_ID_STR ) { - /* Collect the tree data. */ - StrCollect collect; - init_str_collect( &collect ); - colm_print_tree_collect( prg, sp, &collect, input, false ); - - /* Load it into the input. */ - impl->funcs->append_data( impl, collect.data, collect.length ); - length = collect.length; - str_collect_destroy( &collect ); - } - else if ( input->id == LEL_ID_PTR ) { + if ( input->id == LEL_ID_PTR ) { colm_tree_upref( input ); impl->funcs->append_stream( impl, input ); } -- cgit v1.2.1