diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-04-10 21:50:52 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-04-10 21:50:52 +0800 |
commit | 9251b78d69de71343adc0a0612e6c42189412eb9 (patch) | |
tree | b43b1500ed454df4f4b863f8fdec6f27e81b5dac | |
parent | 29c177e550a8102dd9ea3b60d81af64cb038823b (diff) | |
download | gsoc2013-empathy-9251b78d69de71343adc0a0612e6c42189412eb9.tar gsoc2013-empathy-9251b78d69de71343adc0a0612e6c42189412eb9.tar.gz gsoc2013-empathy-9251b78d69de71343adc0a0612e6c42189412eb9.tar.bz2 gsoc2013-empathy-9251b78d69de71343adc0a0612e6c42189412eb9.tar.lz gsoc2013-empathy-9251b78d69de71343adc0a0612e6c42189412eb9.tar.xz gsoc2013-empathy-9251b78d69de71343adc0a0612e6c42189412eb9.tar.zst gsoc2013-empathy-9251b78d69de71343adc0a0612e6c42189412eb9.zip |
remove empathy_plist_parse_array()
It's not used by the Adium code and uses a GValueArray which is deprecated.
-rw-r--r-- | libempathy-gtk/empathy-plist.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/libempathy-gtk/empathy-plist.c b/libempathy-gtk/empathy-plist.c index 73d31466a..1bd4d8ecf 100644 --- a/libempathy-gtk/empathy-plist.c +++ b/libempathy-gtk/empathy-plist.c @@ -169,34 +169,6 @@ empathy_plist_parse_dict (xmlNode *a_node) return tp_g_value_slice_new_take_boxed (G_TYPE_HASH_TABLE, dict); } -static GValue * -empathy_plist_parse_array (xmlNode *a_node) -{ - xmlNode *cur_node = a_node->children; - GValueArray *array; - - array = g_value_array_new (4); - - while (cur_node) { - GValue *cur_value; - - cur_value = empathy_plist_parse_node (cur_node); - if (cur_value) { - g_value_array_append (array, cur_value); - tp_g_value_slice_free (cur_value); - } - - /* When an array contains an element enclosed in "unknown" tags (ie - * non-type ones), we silently skip them since early - * SysInfoExtended files used to have <key> values enclosed within - * <array> tags. - */ - cur_node = cur_node->next; - } - - return tp_g_value_slice_new_take_boxed (G_TYPE_VALUE_ARRAY, array); -} - typedef GValue *(*ParseCallback) (xmlNode *); struct Parser { @@ -211,7 +183,6 @@ static const struct Parser parsers[] = { {"integer", empathy_plist_parse_integer {"false", empathy_plist_parse_boolean}, {"data", empathy_plist_parse_data}, {"dict", empathy_plist_parse_dict}, - {"array", empathy_plist_parse_array}, {NULL, NULL} }; static ParseCallback |