Skip to content

Commit cdefd97

Browse files
remove redundant code
1 parent fa6d193 commit cdefd97

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ext/liquid_c/block.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,6 @@ static tag_markup_t internal_block_body_parse(block_body_t *body, parse_context_
219219
break;
220220
}
221221

222-
if ((name_len == 4 && strncmp(name_start, "else", 4) == 0) || (name_len == 5 && strncmp(name_start, "endif", 5) == 0)) {
223-
VALUE str = rb_enc_str_new(name_start, name_len, utf8_encoding);
224-
unknown_tag = (tag_markup_t) { str, str };
225-
goto loop_break;
226-
}
227-
228222
const char *markup_start = read_while(name_end, end, rb_isspace);
229223
VALUE markup = rb_enc_str_new(markup_start, end - markup_start, utf8_encoding);
230224
VALUE tag_name = rb_enc_str_new(name_start, name_end - name_start, utf8_encoding);

0 commit comments

Comments
 (0)