1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

Cleanup and remove unnneded code

This commit is contained in:
Jonas Fonseca 2005-12-25 04:40:58 +01:00 committed by Jonas Fonseca
parent 40ae683bfb
commit f2ba5e7f6b

View File

@ -940,23 +940,12 @@ dom_select_pop_element(struct dom_stack *stack, struct dom_node *node, void *dat
struct dom_select_node *selector = (void *) state->node;
struct dom_select_state *select_state;
/* XXX: Assume that it is the first stack context! */
select_state = get_dom_stack_state_data(stack->contexts, state);
select_state = get_dom_select_state(stack, state);
if (select_state->node == node) {
pop_dom_state(stack, state);
WDBG("Remove element.");
continue;
}
/* FIXME: Pop states that no longer lives up to a relation. */
switch (get_element_relation(selector)) {
case DOM_SELECT_RELATION_DIRECT_CHILD: /* E > F */
case DOM_SELECT_RELATION_DIRECT_ADJACENT: /* E + F */
case DOM_SELECT_RELATION_INDIRECT_ADJACENT: /* E ~ F */
case DOM_SELECT_RELATION_DESCENDANT: /* E F */
default:
break;
}
}
}