Remove useless group redrawing. Remove unused variable.

This commit is contained in:
Stephan Erb 2008-04-04 09:44:47 +00:00
parent 611a53422e
commit bea91baeaa
1 changed files with 0 additions and 5 deletions

View File

@ -290,7 +290,6 @@ class RosterWindow:
if hide and contact.sub != 'from': if hide and contact.sub != 'from':
return return
observer = contact.is_observer() observer = contact.is_observer()
groupchat = contact.is_groupchat()
if observer: if observer:
# if he has a tag, remove it # if he has a tag, remove it
@ -3439,10 +3438,6 @@ class RosterWindow:
for c in gajim.contacts.get_contacts(account, contact.jid): for c in gajim.contacts.get_contacts(account, contact.jid):
self.remove_contact(c, account) self.remove_contact(c, account)
gajim.contacts.remove_jid(account, contact.jid) gajim.contacts.remove_jid(account, contact.jid)
# redraw group rows for contact numbers
for group in c.groups:
self.draw_group(group, account)
# redraw account rows for contact numbers
self.draw_account(account) self.draw_account(account)
if not remove_auth and contact.sub == 'both': if not remove_auth and contact.sub == 'both':
contact.name = '' contact.name = ''