Skip to content

Commit 9639195

Browse files
remove redundant code
1 parent fa6d193 commit 9639195

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ instruments*.trace
1111
*.cpu
1212
*.object
1313
*.dSYM
14+
.vscode/
15+
vendor/

ext/liquid_c/block.c

Lines changed: 0 additions & 8 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);
@@ -318,8 +312,6 @@ tag_markup_t parse_if_tag(VALUE markup, block_body_t *body, parse_context_t *par
318312
VALUE condition_obj = parse_single_binary_comparison(markup);
319313
vm_assembler_add_op_with_constant(body_code, condition_obj, OP_EVAL_CONDITION);
320314

321-
uint8_t* instruction;
322-
323315
ptrdiff_t exit_branches[10];
324316
ptrdiff_t* exit_start = exit_branches;
325317
ptrdiff_t* exit_end = exit_branches;

0 commit comments

Comments
 (0)