From 262856273e161268f0fb390dd222151fc60bfa10 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Thu, 22 Dec 2005 23:42:23 +0100 Subject: [PATCH] Drop unused get_dom_node_attributes(), comment get_dom_node_list() --- src/document/dom/node.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/document/dom/node.h b/src/document/dom/node.h index b52190dbd..fde27be25 100644 --- a/src/document/dom/node.h +++ b/src/document/dom/node.h @@ -299,11 +299,8 @@ struct dom_string *get_dom_node_value(struct dom_node *node); /* Returns the name used for identifying the node type. */ struct dom_string *get_dom_node_type_name(enum dom_node_type type); -/* Returns a pointer to a node list containing attributes. */ -#define get_dom_node_attributes(node) \ - ((node)->type == DOM_NODE_ELEMENT ? &(node)->data.element.map \ - : NULL) - +/* Based on the type of the parent and the node return a proper list + * or NULL. This is useful when adding a node to a parent node. */ static inline struct dom_node_list ** get_dom_node_list(struct dom_node *parent, struct dom_node *node) {