aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/message/module.vala
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp-vala/src/module/message/module.vala')
-rw-r--r--xmpp-vala/src/module/message/module.vala6
1 files changed, 1 insertions, 5 deletions
diff --git a/xmpp-vala/src/module/message/module.vala b/xmpp-vala/src/module/message/module.vala
index 8aad08df..1d54443c 100644
--- a/xmpp-vala/src/module/message/module.vala
+++ b/xmpp-vala/src/module/message/module.vala
@@ -27,12 +27,8 @@ namespace Xmpp.Message {
received_message(stream, message);
}
- public static Module? get_module(XmppStream stream) {
- return (Module?) stream.get_module(IDENTITY);
- }
-
public static void require(XmppStream stream) {
- if (get_module(stream) == null) stream.add_module(new Message.Module());
+ if (stream.get_module(IDENTITY) == null) stream.add_module(new Message.Module());
}
public override void attach(XmppStream stream) {