Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dead code #227

Merged
merged 3 commits into from
Jan 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 1 addition & 9 deletions src/md4c.c
Original file line number Diff line number Diff line change
Expand Up @@ -1275,9 +1275,6 @@ md_is_html_cdata(MD_CTX* ctx, const MD_LINE* lines, int n_lines, OFF beg, OFF ma
return FALSE;
off += open_size;

if(lines[n_lines-1].end < max_end)
max_end = lines[n_lines-1].end - 2;

return md_scan_for_html_closer(ctx, _T("]]>"), 3,
lines, n_lines, off, max_end, p_end, &ctx->html_cdata_horizon);
}
Expand Down Expand Up @@ -2558,7 +2555,7 @@ md_opener_stack(MD_CTX* ctx, int mark_index)
case _T('!'):
case _T('['): return &BRACKET_OPENERS;

default: return NULL;
default: MD_UNREACHABLE();
}
}

Expand Down Expand Up @@ -4599,11 +4596,6 @@ md_process_table_row(MD_CTX* ctx, MD_BLOCKTYPE cell_type, OFF beg, OFF end,
abort:
free(pipe_offs);

/* Free any temporary memory blocks stored within some dummy marks. */
for(i = ctx->ptr_stack.top; i >= 0; i = ctx->marks[i].next)
free(md_mark_get_ptr(ctx, i));
ctx->ptr_stack.top = -1;

ctx->table_cell_boundaries_head = -1;
ctx->table_cell_boundaries_tail = -1;

Expand Down