diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-12-01 22:09:02 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-12-01 22:09:02 (GMT) |
commit | 518d2d61d0a2e48fb77fd92ee1466e6a5887d137 (patch) | |
tree | 90cd034455815bae6dd854301972afeba3391eec /shell/model | |
parent | ba5d1b480430860949ff57fdb4a37bb28fc2ef4e (diff) |
Remove unused old registry code
Diffstat (limited to 'shell/model')
-rw-r--r-- | shell/model/Invites.py | 16 | ||||
-rw-r--r-- | shell/model/MeshModel.py | 1 |
2 files changed, 0 insertions, 17 deletions
diff --git a/shell/model/Invites.py b/shell/model/Invites.py index 66c8a89..bc947a9 100644 --- a/shell/model/Invites.py +++ b/shell/model/Invites.py @@ -16,28 +16,12 @@ import gobject -import conf -from sugar.presence import PresenceService -from sugar.graphics.iconcolor import IconColor - class Invite: def __init__(self, issuer, bundle_id, activity_id): self._issuer = issuer self._activity_id = activity_id self._bundle_id = bundle_id - def get_icon(self): - reg = conf.get_activity_registry() - return reg.get_activity(self._bundle_id).get_icon() - - def get_color(self): - pservice = PresenceService.get_instance() - buddy = pservice.get_buddy_by_name(self._issuer) - if buddy != None: - return IconColor(buddy.get_color()) - else: - return IconColor('white') - def get_activity_id(self): return self._activity_id diff --git a/shell/model/MeshModel.py b/shell/model/MeshModel.py index 2006b5d..0ecf2b8 100644 --- a/shell/model/MeshModel.py +++ b/shell/model/MeshModel.py @@ -16,7 +16,6 @@ import gobject -import conf from sugar.graphics.iconcolor import IconColor from sugar.presence import PresenceService from model.BuddyModel import BuddyModel |