[telepathy-gabble/master] GabblePresence: stop storing caps bitfield in resources
Simon McVittie
simon.mcvittie at collabora.co.uk
Mon Aug 24 10:13:13 PDT 2009
---
src/presence.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/src/presence.c b/src/presence.c
index 0d4bad9..243ff0a 100644
--- a/src/presence.c
+++ b/src/presence.c
@@ -42,7 +42,6 @@ typedef struct _Resource Resource;
struct _Resource {
gchar *name;
GabbleCapabilitySet *cap_set;
- GabblePresenceCapabilities caps;
guint caps_serial;
GabblePresenceId status;
gchar *status_message;
@@ -65,7 +64,6 @@ _resource_new (gchar *name)
Resource *new = g_slice_new0 (Resource);
new->name = name;
new->cap_set = gabble_capability_set_new ();
- new->caps = PRESENCE_CAP_NONE;
new->status = GABBLE_PRESENCE_OFFLINE;
new->status_message = NULL;
new->priority = 0;
@@ -267,7 +265,6 @@ gabble_presence_set_capabilities (GabblePresence *presence,
{
DEBUG ("new serial %u, old %u, clearing caps", serial,
tmp->caps_serial);
- tmp->caps = 0;
tmp->caps_serial = serial;
gabble_capability_set_clear (tmp->cap_set);
}
@@ -275,8 +272,6 @@ gabble_presence_set_capabilities (GabblePresence *presence,
if (serial >= tmp->caps_serial)
{
DEBUG ("adding caps %u to resource %s", caps, resource);
- tmp->caps |= caps;
- DEBUG ("resource %s caps now %u", resource, tmp->caps);
gabble_capability_set_update (tmp->cap_set, cap_set);
}
@@ -544,10 +539,9 @@ gabble_presence_dump (GabblePresence *presence)
g_string_append_printf (ret,
" %s\n"
- " capabilities: %d\n"
" status: %d\n"
" status msg: %s\n"
- " priority: %d\n", res->name, res->caps, res->status,
+ " priority: %d\n", res->name, res->status,
res->status_message, res->priority);
}
--
1.5.6.5
More information about the telepathy-commits
mailing list