summaryrefslogtreecommitdiff
path: root/src/core/element.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-12-21 22:29:49 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-12-21 22:29:49 +0000
commit551ef0fa451b0a0a19e7a42cd9c1915b070ae4c9 (patch)
treec42a259daf27cb77445b95c18d8e208acf34653a /src/core/element.c
parent83f3338663c4969eebefd8c2c43bd3fc43587fdd (diff)
downloadlibdom-551ef0fa451b0a0a19e7a42cd9c1915b070ae4c9.tar.gz
libdom-551ef0fa451b0a0a19e7a42cd9c1915b070ae4c9.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.c12
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) {