From c09947146ac55d23ccad0d5ff071a1d6cd8e744e Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 10 Sep 2015 16:26:23 -0700 Subject: [PATCH] Remove not-necessarily-valid assertion --- src/runtime/parser.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/runtime/parser.c b/src/runtime/parser.c index 8855ae0c..cc7c0c42 100644 --- a/src/runtime/parser.c +++ b/src/runtime/parser.c @@ -1,4 +1,3 @@ -#include #include #include #include "tree_sitter/runtime.h" @@ -311,7 +310,6 @@ static TSTree *ts_parser__finish(TSParser *parser) { TSTree **trees = pop_result.trees; size_t extra_count = pop_result.tree_count - 1; TSTree *root = trees[extra_count]; - assert(root->child_count > 0); ts_tree_prepend_children(root, extra_count, trees); ts_parse_stack_push(parser->stack, 0, 0, root);