From aef4452ff56f663f0fc198a92df5ce969e5f1c52 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 6 Apr 2013 12:24:26 +0200 Subject: [PATCH] remove unused class parameter --- src/common/connection_handlers.py | 2 +- src/common/protocol/caps.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 3b813489e..202df7ba7 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -1421,7 +1421,7 @@ ConnectionJingle, ConnectionIBBytestream): gajim.nec.register_incoming_event(PresenceReceivedEvent) ConnectionCaps.__init__(self, account=self.name, - dispatch_event=self.dispatch, capscache=capscache.capscache, + capscache=capscache.capscache, client_caps_factory=capscache.create_suitable_client_caps) ConnectionJingle.__init__(self) ConnectionHandlersBase.__init__(self) diff --git a/src/common/protocol/caps.py b/src/common/protocol/caps.py index 905708bc7..b8792d5ab 100644 --- a/src/common/protocol/caps.py +++ b/src/common/protocol/caps.py @@ -34,9 +34,8 @@ from common.connection_handlers_events import CapsPresenceReceivedEvent, \ class ConnectionCaps(object): - def __init__(self, account, dispatch_event, capscache, client_caps_factory): + def __init__(self, account, capscache, client_caps_factory): self._account = account - self._dispatch_event = dispatch_event self._capscache = capscache self._create_suitable_client_caps = client_caps_factory gajim.nec.register_incoming_event(CapsPresenceReceivedEvent)