summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-xml-extensions.c40
-rw-r--r--eel/eel-xml-extensions.h2
2 files changed, 0 insertions, 42 deletions
diff --git a/eel/eel-xml-extensions.c b/eel/eel-xml-extensions.c
index de09b99f..da2cf6b5 100644
--- a/eel/eel-xml-extensions.c
+++ b/eel/eel-xml-extensions.c
@@ -84,43 +84,3 @@ eel_xml_get_root_child_by_name_and_property (xmlDocPtr document,
property_name,
property_value);
}
-
-xmlChar *
-eel_xml_get_property_translated (xmlNodePtr parent,
- const char *property_name)
-{
- xmlChar *property, *untranslated_property;
- char *untranslated_property_name;
- const char *translated_property;
-
- /* Try for the already-translated version. */
- property = xmlGetProp (parent, property_name);
- if (property != NULL)
- {
- return property;
- }
-
- /* Try for the untranslated version. */
- untranslated_property_name = g_strconcat ("_", property_name, NULL);
- untranslated_property = xmlGetProp (parent, untranslated_property_name);
- g_free (untranslated_property_name);
- if (untranslated_property == NULL)
- {
- return NULL;
- }
-
- /* Try to translate. */
- translated_property = gettext (untranslated_property);
-
- /* If not translation is found, return untranslated property as-is. */
- if (translated_property == (char *) untranslated_property)
- {
- return untranslated_property;
- }
-
- /* If a translation happened, make a copy to match the normal
- * behavior of this function (returning a string you xmlFree).
- */
- xmlFree (untranslated_property);
- return xmlStrdup (translated_property);
-}
diff --git a/eel/eel-xml-extensions.h b/eel/eel-xml-extensions.h
index 90d19f5f..fba9ba57 100644
--- a/eel/eel-xml-extensions.h
+++ b/eel/eel-xml-extensions.h
@@ -37,7 +37,5 @@ xmlNodePtr eel_xml_get_root_child_by_name_and_property (xmlDocPtr document,
const char *child_name,
const char *property_name,
const char *property_value);
-xmlChar *eel_xml_get_property_translated (xmlNodePtr parent,
- const char *property_name);
#endif /* EEL_XML_EXTENSIONS_H */