Philipp Hörist pushed to branch master at gajim / gajim

Commits:
932377f5 by Philipp Hörist at 2018-12-04T18:32:13Z
Remove unused event

- - - - -


2 changed files:

- gajim/common/connection.py
- gajim/common/connection_handlers_events.py


Changes:

=====================================
gajim/common/connection.py
=====================================
@@ -450,16 +450,11 @@ class CommonConnection:
             if app.is_installed('GPG'):
                 self.USE_GPG = True
                 self.gpg = gpg.GnuPG()
-            app.nec.push_incoming_event(BeforeChangeShowEvent(None,
-                conn=self, show=show, message=msg))
             self.connect_and_init(show, msg, sign_msg)
             return
 
         if show == 'offline':
             if self.connection:
-                app.nec.push_incoming_event(BeforeChangeShowEvent(None,
-                    conn=self, show=show, message=msg))
-
                 p = self.get_module('Presence').get_presence(
                     typ='unavailable',
                     status=msg,
@@ -474,8 +469,6 @@ class CommonConnection:
             if self.connected == 1:
                 return
             if show == 'invisible':
-                app.nec.push_incoming_event(BeforeChangeShowEvent(None,
-                    conn=self, show=show, message=msg))
                 self._change_to_invisible(msg)
                 return
             if show not in ['offline', 'online', 'chat', 'away', 'xa', 'dnd']:
@@ -488,8 +481,6 @@ class CommonConnection:
                     idle_sec = idle.Monitor.get_idle_sec()
                     idle_time = time.strftime('%Y-%m-%dT%H:%M:%SZ',
                         time.gmtime(time.time() - idle_sec))
-            app.nec.push_incoming_event(BeforeChangeShowEvent(None,
-                conn=self, show=show, message=msg))
             if was_invisible:
                 self._change_from_invisible()
             self._update_status(show, msg, idle_time=idle_time)


=====================================
gajim/common/connection_handlers_events.py
=====================================
@@ -397,9 +397,6 @@ class GcPresenceReceivedEvent(nec.NetworkIncomingEvent, 
HelperEvent):
 class OurShowEvent(nec.NetworkIncomingEvent):
     name = 'our-show'
 
-class BeforeChangeShowEvent(nec.NetworkIncomingEvent):
-    name = 'before-change-show'
-
 class GcMessageReceivedEvent(nec.NetworkIncomingEvent):
     name = 'gc-message-received'
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/932377f533a97d25aabf210b4fe52fb0a4ad0738

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/932377f533a97d25aabf210b4fe52fb0a4ad0738
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to