From b0264b3e0034ddd9ea76d0e13bb4c3c709ba3b3e Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sat, 12 Aug 2017 23:27:20 +0200 Subject: xmpp-vala: Remove require-functions --- xmpp-vala/src/module/xep/0085_chat_state_notifications.vala | 5 ----- 1 file changed, 5 deletions(-) (limited to 'xmpp-vala/src/module/xep/0085_chat_state_notifications.vala') diff --git a/xmpp-vala/src/module/xep/0085_chat_state_notifications.vala b/xmpp-vala/src/module/xep/0085_chat_state_notifications.vala index 9b5ba075..5de504a2 100644 --- a/xmpp-vala/src/module/xep/0085_chat_state_notifications.vala +++ b/xmpp-vala/src/module/xep/0085_chat_state_notifications.vala @@ -30,7 +30,6 @@ public class Module : XmppStreamModule { } public override void attach(XmppStream stream) { - ServiceDiscovery.Module.require(stream); stream.get_module(ServiceDiscovery.Module.IDENTITY).add_feature(stream, NS_URI); stream.get_module(Message.Module.IDENTITY).pre_send_message.connect(on_pre_send_message); stream.get_module(Message.Module.IDENTITY).received_message.connect(on_received_message); @@ -41,10 +40,6 @@ public class Module : XmppStreamModule { stream.get_module(Message.Module.IDENTITY).received_message.disconnect(on_received_message); } - public static void require(XmppStream stream) { - if (stream.get_module(IDENTITY) == null) stream.add_module(new Module()); ; - } - public override string get_ns() { return NS_URI; } public override string get_id() { return IDENTITY.id; } -- cgit v1.2.3-54-g00ecf