Lose redundant variable.

Ensure name_t is used in tree_delete_node_internal()

svn path=/trunk/netsurf/; revision=7609
This commit is contained in:
John Mark Bell 2009-05-28 16:16:16 +00:00
parent 2730814c27
commit 73a89e8a0f
2 changed files with 6 additions and 3 deletions

View File

@ -162,6 +162,10 @@ else
endif
endif
# Hackiness for scan-build
export CCC_CC := $(CC)
CC := /home/jmb/llvm/tools/clang/utils/ccc-analyzer
OBJROOT = build-$(HOST)-$(TARGET)$(SUBTARGET)
# ----------------------------------------------------------------------------

View File

@ -166,11 +166,10 @@ void tree_handle_node_element_changed(struct tree *tree, struct node_element *el
*/
void tree_recalculate_node(struct tree *tree, struct node *node, bool recalculate_sizes) {
struct node_element *element;
int width, height;
int height;
assert(node);
width = node->box.width;
height = node->box.height;
node->box.width = 0;
node->box.height = 0;
@ -969,7 +968,7 @@ void tree_delete_node_internal(struct tree *tree, struct node *node, bool siblin
urldb_delete_cookie(
domain_t,
path_t,
e->text);
name_t);
}
}
}