Remove unneeded commented code.
This commit is contained in:
parent
c72d4cfb35
commit
37a234b1be
|
@ -2024,48 +2024,3 @@ class GroupchatControl(ChatControlBase):
|
|||
self.grant_owner(widget, jid)
|
||||
else:
|
||||
self.revoke_owner(widget, jid)
|
||||
|
||||
#~ def read_queue(self, jid, account):
|
||||
#~ '''read queue and print messages containted in it'''
|
||||
#~ events = gajim.events.get_events(account, jid)
|
||||
|
||||
#~ for event in events:
|
||||
#~ if event.type_ == 'change_subject':
|
||||
#~ array = event.parameters
|
||||
#~ jids = array[0].split('/', 1)
|
||||
#~ jid = jids[0]
|
||||
#~ self.set_subject(array[1])
|
||||
#~ text = None
|
||||
#~ if len(jids) > 1:
|
||||
#~ text = _('%s has set the subject to %s') % (jids[1], array[1])
|
||||
#~ elif array[2]:
|
||||
#~ text = array[2]
|
||||
#~ if text is not None:
|
||||
#~ self.print_conversation(text, tim = array[3])
|
||||
|
||||
#~ if event.type_ == 'change_status':
|
||||
#~ array = event.parameters
|
||||
#~ nick = array[3]
|
||||
#~ if not nick:
|
||||
#~ return
|
||||
#~ room_jid = array[0]
|
||||
#~ fjid = room_jid + '/' + nick
|
||||
#~ show = array[1]
|
||||
#~ status = array[2]
|
||||
#~ self.chg_contact_status(nick, show, status, array[4], array[5],
|
||||
#~ array[6], array[7], array[8], array[9], array[10], array[11])
|
||||
|
||||
#~ self.parent_win.redraw_tab(self)
|
||||
|
||||
#~ if event.type_ in ['gc_msg', 'gc_history']:
|
||||
#~ array = event.parameters
|
||||
#~ kind = array[0]
|
||||
#~ if kind == 'error' or kind == 'status':
|
||||
#~ kind = 'info'
|
||||
#~ self.on_message(kind, array[1], array[2], array[3], array[4])
|
||||
|
||||
#~ gajim.events.remove_events(account, jid,
|
||||
#~ types = ['change_status', 'gc_msg', 'gc_history',
|
||||
#~ 'change_subject'])
|
||||
#~ gajim.interface.roster.draw_contact(jid, account)
|
||||
#~ gajim.interface.roster.show_title()
|
||||
|
|
Loading…
Reference in New Issue