[telepathy-gabble/master] Remove capabilities_parse
Simon McVittie
simon.mcvittie at collabora.co.uk
Mon Aug 24 12:40:34 PDT 2009
---
src/capabilities.c | 49 -------------------------------------------------
src/capabilities.h | 2 --
2 files changed, 0 insertions(+), 51 deletions(-)
diff --git a/src/capabilities.c b/src/capabilities.c
index e286cd3..9a1b147 100644
--- a/src/capabilities.c
+++ b/src/capabilities.c
@@ -285,55 +285,6 @@ struct _GabbleCapabilitySet {
TpHandleSet *handles;
};
-GabblePresenceCapabilities
-capabilities_parse (const GabbleCapabilitySet *cap_set)
-{
- GabblePresenceCapabilities ret = PRESENCE_CAP_NONE;
- const gchar *var;
- const Feature *i;
- TpIntSetIter iter;
-
- g_return_val_if_fail (cap_set != NULL, 0);
-
- tp_intset_iter_init (&iter, tp_handle_set_peek (cap_set->handles));
-
- while (tp_intset_iter_next (&iter))
- {
- var = tp_handle_inspect (feature_handles, iter.element);
-
- if (var[0] == QUIRK_PREFIX_CHAR)
- {
- for (i = quirks; i->ns != NULL; i++)
- {
- if (!tp_strdiff (var, i->ns))
- {
- ret |= i->caps;
- break;
- }
- }
-
- if (i->ns == NULL)
- g_warning ("unknown quirk: %s", var + 1);
- }
- else
- {
- for (i = self_advertised_features; i->ns != NULL; i++)
- {
- if (!tp_strdiff (var, i->ns))
- {
- ret |= i->caps;
- break;
- }
- }
-
- if (i->ns == NULL)
- DEBUG ("ignoring unknown capability %s", var);
- }
- }
-
- return ret;
-}
-
void
capabilities_fill_cache (GabblePresenceCache *cache)
{
diff --git a/src/capabilities.h b/src/capabilities.h
index 150bb97..ed94979 100644
--- a/src/capabilities.h
+++ b/src/capabilities.h
@@ -131,8 +131,6 @@ void capabilities_fill_cache (GabblePresenceCache *cache);
/* Return the capabilities we always have */
const GabbleCapabilitySet *gabble_capabilities_get_initial_caps (void);
-GabblePresenceCapabilities capabilities_parse (const GabbleCapabilitySet *cap_set);
-
typedef void (*TypeFlagsToCapsFunc) (guint typeflags, GabbleCapabilitySet *caps);
typedef guint (*CapsToTypeFlagsFunc) (const GabbleCapabilitySet *caps);
--
1.5.6.5
More information about the telepathy-commits
mailing list