Remove unused event

This commit is contained in:
Philipp Hörist 2018-12-04 19:32:13 +01:00
parent 700666b820
commit 932377f533
2 changed files with 0 additions and 12 deletions

View File

@ -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)

View File

@ -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'