Mercurial > pidgin.yaz
changeset 25991:592b88eae0d5
Remove more #if 0'd code referencing exts
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 08 Mar 2009 01:17:38 +0000 |
parents | 035ba9355361 |
children | 1c450685dbc6 |
files | libpurple/protocols/jabber/presence.c |
diffstat | 1 files changed, 0 insertions(+), 33 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c Sat Mar 07 02:23:14 2009 +0000 +++ b/libpurple/protocols/jabber/presence.c Sun Mar 08 01:17:38 2009 +0000 @@ -273,39 +273,6 @@ xmlnode_set_attrib(c, "hash", "sha-1"); xmlnode_set_attrib(c, "ver", jabber_caps_get_own_hash(js)); -#if 0 - if(js != NULL) { - /* add the extensions */ - char extlist[1024]; - unsigned remaining = 1023; /* one less for the \0 */ - GList *feature; - - extlist[0] = '\0'; - for(feature = jabber_features; feature && remaining > 0; feature = feature->next) { - JabberFeature *feat = (JabberFeature*)feature->data; - unsigned featlen; - - if(feat->is_enabled != NULL && feat->is_enabled(js, feat->shortname, feat->namespace) == FALSE) - continue; /* skip this feature */ - - featlen = strlen(feat->shortname); - - /* cut off when we don't have any more space left in our buffer (too bad) */ - if(featlen > remaining) - break; - - strncat(extlist,feat->shortname,remaining); - remaining -= featlen; - if(feature->next) { /* no space at the end */ - strncat(extlist," ",remaining); - --remaining; - } - } - /* did we add anything? */ - if(remaining < 1023) - xmlnode_set_attrib(c, "ext", extlist); - } -#endif return presence; }