1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-12 00:34:47 -04:00

do_pop_dom_node(): move dom_stack_has_parents() to assertion

All callers already checks if the stack is empty.
This commit is contained in:
Jonas Fonseca 2005-12-19 02:05:43 +01:00 committed by Jonas Fonseca
parent 9bc71ec8a9
commit bc338207e7

View File

@ -137,8 +137,7 @@ do_pop_dom_node(struct dom_stack *stack, struct dom_stack_state *parent)
struct dom_stack_state *state;
dom_stack_callback_T callback;
assert(stack);
if (!dom_stack_has_parents(stack)) return 0;
assert(stack && dom_stack_has_parents(stack));
state = get_dom_stack_top(stack);
callback = stack->pop_callbacks[state->node->type];