From 2d31d9d4706d6fea870f9081a1451448f032473d Mon Sep 17 00:00:00 2001 From: fiaxh Date: Thu, 3 Sep 2020 22:52:07 +0200 Subject: Cleanup --- xmpp-vala/src/module/xep/0030_service_discovery/flag.vala | 6 ------ xmpp-vala/src/module/xep/0030_service_discovery/module.vala | 1 - 2 files changed, 7 deletions(-) (limited to 'xmpp-vala/src/module/xep/0030_service_discovery') diff --git a/xmpp-vala/src/module/xep/0030_service_discovery/flag.vala b/xmpp-vala/src/module/xep/0030_service_discovery/flag.vala index ab311727..67729f5d 100644 --- a/xmpp-vala/src/module/xep/0030_service_discovery/flag.vala +++ b/xmpp-vala/src/module/xep/0030_service_discovery/flag.vala @@ -5,8 +5,6 @@ namespace Xmpp.Xep.ServiceDiscovery { public class Flag : XmppStreamFlag { public static FlagIdentity IDENTITY = new FlagIdentity(NS_URI, "service_discovery"); - private HashMap?> entity_items = new HashMap?>(Jid.hash_func, Jid.equals_func); - private Gee.Set own_features_ = new HashSet(); public Gee.List own_features { owned get { @@ -21,10 +19,6 @@ public class Flag : XmppStreamFlag { owned get { return own_identities_.read_only_view; } } - public void set_entity_items(Jid jid, Gee.List? features) { - entity_items[jid] = features; - } - public void add_own_feature(string feature) { if (own_features_.contains(feature)) { warning("Tried to add the feature %s a second time".printf(feature)); diff --git a/xmpp-vala/src/module/xep/0030_service_discovery/module.vala b/xmpp-vala/src/module/xep/0030_service_discovery/module.vala index c61d3ab0..0b573a13 100644 --- a/xmpp-vala/src/module/xep/0030_service_discovery/module.vala +++ b/xmpp-vala/src/module/xep/0030_service_discovery/module.vala @@ -80,7 +80,6 @@ public class Module : XmppStreamModule, Iq.Handler { Iq.Stanza iq_result = yield stream.get_module(Iq.Module.IDENTITY).send_iq_async(stream, iq); ItemsResult? result = ItemsResult.create_from_iq(iq_result); - stream.get_flag(Flag.IDENTITY).set_entity_items(iq_result.from, result != null ? result.items : null); return result; } -- cgit v1.2.3-70-g09d2