1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

pop_dom_state(): Drop unused left-over argument

This commit is contained in:
Jonas Fonseca 2005-12-15 22:05:30 +01:00 committed by Jonas Fonseca
parent ef5d5fc27a
commit 45861c68e1
3 changed files with 4 additions and 7 deletions

View File

@ -184,12 +184,11 @@ pop_dom_nodes(struct dom_stack *stack, enum dom_node_type type,
state = search_dom_stack(stack, type, string);
if (state)
pop_dom_state(stack, type, state);
pop_dom_state(stack, state);
}
void
pop_dom_state(struct dom_stack *stack, enum dom_node_type type,
struct dom_stack_state *target)
pop_dom_state(struct dom_stack *stack, struct dom_stack_state *target)
{
struct dom_stack_state *state;
unsigned int pos;

View File

@ -127,9 +127,7 @@ void pop_dom_nodes(struct dom_stack *stack, enum dom_node_type type,
struct dom_string *string);
/* Pop all stack states until a specific state is reached. */
void
pop_dom_state(struct dom_stack *stack, enum dom_node_type type,
struct dom_stack_state *target);
void pop_dom_state(struct dom_stack *stack, struct dom_stack_state *target);
/* Visit each node in the tree rooted at @root pre-order */
void walk_dom_nodes(struct dom_stack *stack, struct dom_node *root);

View File

@ -255,7 +255,7 @@ parse_sgml_document(struct dom_stack *stack, struct scanner *scanner)
pstate = get_dom_stack_state_data(stack, state);
copy_struct(&pstate->end_token, token);
pop_dom_state(stack, DOM_NODE_ELEMENT, state);
pop_dom_state(stack, state);
}
}
skip_scanner_token(scanner);