diff options
Diffstat (limited to 'chat/BuddyList.py')
-rw-r--r-- | chat/BuddyList.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/chat/BuddyList.py b/chat/BuddyList.py index 9bc63ba..e7cb7ca 100644 --- a/chat/BuddyList.py +++ b/chat/BuddyList.py @@ -1,5 +1,3 @@ -# -*- tab-width: 4; indent-tabs-mode: t -*- - import presence import avahi @@ -16,13 +14,6 @@ class Buddy(object): self._host = host self._address = address self._port = port - self._chat = None - - def set_chat(self, chat): - self._chat = chat - - def chat(self): - return self._chat def nick(self): return self._nick @@ -75,12 +66,6 @@ class BuddyList(object): return buddy return None - def find_buddy_by_address(self, address): - for buddy in self._buddies.keys(): - if buddy.address() == address: - return buddy - return None - def _notify_listeners(self, action, buddy): for listener in self._listeners: listener(action, buddy) |