diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-12-21 22:29:49 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-12-21 22:29:49 +0000 |
commit | 16ab2590d4ca3a4d7c9ce72b2ef3f4e62daff4e7 (patch) | |
tree | c42a259daf27cb77445b95c18d8e208acf34653a /src/core/element.c | |
parent | 99a601a856a2bd6c9974db589b0ef3f54e04aeca (diff) | |
download | libdom-16ab2590d4ca3a4d7c9ce72b2ef3f4e62daff4e7.tar.gz libdom-16ab2590d4ca3a4d7c9ce72b2ef3f4e62daff4e7.tar.bz2 |
Fix build with GCC 4.6
svn path=/trunk/libdom/; revision=13317
Diffstat (limited to 'src/core/element.c')
-rw-r--r-- | src/core/element.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/core/element.c b/src/core/element.c index 230087a..89c62a3 100644 --- a/src/core/element.c +++ b/src/core/element.c @@ -541,9 +541,6 @@ dom_exception _dom_element_set_attribute_ns(struct dom_element *element, attrs = _dom_hash_get(element->ns_attributes, namespace); /* The element has no such namespace */ if (attrs == NULL) { - dom_document *doc; - doc = dom_node_get_owner(element); - assert(doc != NULL); attrs = _dom_hash_create(CHAINS_NS_ATTRIBUTES, &attributes_vtable, NULL); if (attrs == NULL) @@ -668,9 +665,6 @@ dom_exception _dom_element_set_attribute_node_ns(struct dom_element *element, attrs = _dom_hash_get(element->ns_attributes, namespace); /* The element has no such namespace */ if (attrs == NULL) { - dom_document *doc; - doc = dom_node_get_owner(element); - assert(doc != NULL); attrs = _dom_hash_create(CHAINS_NS_ATTRIBUTES, &attributes_vtable, NULL); if (attrs == NULL) @@ -713,9 +707,7 @@ dom_exception _dom_element_get_elements_by_tag_name_ns( struct dom_element *element, dom_string *namespace, dom_string *localname, struct dom_nodelist **result) { - dom_document *doc; dom_exception err; - doc = element->base.owner; /** \todo ensure XML feature is supported */ @@ -1705,10 +1697,6 @@ dom_exception _dom_element_get_id(struct dom_element *ele, dom_string **id) if (ele->id_ns != NULL && ele->id_name != NULL) { /* There is user specific ID attribute */ - dom_document *doc; - doc = dom_node_get_owner(ele); - assert(doc != NULL); - err = _dom_element_get_attribute_ns(ele, ele->id_ns, ele->id_name, &ret); if (err != DOM_NO_ERR) { |