summaryrefslogtreecommitdiff
path: root/src/treebuilder/element-type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/treebuilder/element-type.h')
-rw-r--r--src/treebuilder/element-type.h22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/treebuilder/element-type.h b/src/treebuilder/element-type.h
index a8e33d9..93b168c 100644
--- a/src/treebuilder/element-type.h
+++ b/src/treebuilder/element-type.h
@@ -42,11 +42,6 @@ struct element_type_map {
element_type type;
};
-/* Generated by gperf */
-const struct element_type_map *hubbub_element_type_lookup(
- register const char *str,
- register size_t len);
-
/**
* Convert an element name into an element type
*
@@ -54,22 +49,9 @@ const struct element_type_map *hubbub_element_type_lookup(
* \param tag_name The tag name to consider
* \return The corresponding element type
*/
-static inline element_type element_type_from_name(
+element_type element_type_from_name(
hubbub_treebuilder *treebuilder,
- const hubbub_string *tag_name)
-{
- const struct element_type_map *value;
-
- UNUSED(treebuilder);
-
- value = hubbub_element_type_lookup((const char *)tag_name->ptr,
- tag_name->len);
- if (value == NULL) {
- return UNKNOWN;
- }
-
- return value->type;
-}
+ const hubbub_string *tag_name);
#endif