Skip to content

Commit

Permalink
remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
damnMeddlingKid committed Feb 28, 2022
1 parent fa6d193 commit cdefd97
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ext/liquid_c/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,6 @@ static tag_markup_t internal_block_body_parse(block_body_t *body, parse_context_
break;
}

if ((name_len == 4 && strncmp(name_start, "else", 4) == 0) || (name_len == 5 && strncmp(name_start, "endif", 5) == 0)) {
VALUE str = rb_enc_str_new(name_start, name_len, utf8_encoding);
unknown_tag = (tag_markup_t) { str, str };
goto loop_break;
}

const char *markup_start = read_while(name_end, end, rb_isspace);
VALUE markup = rb_enc_str_new(markup_start, end - markup_start, utf8_encoding);
VALUE tag_name = rb_enc_str_new(name_start, name_end - name_start, utf8_encoding);
Expand Down

0 comments on commit cdefd97

Please sign in to comment.