diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-07-03 18:55:46 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-07-03 18:55:46 (GMT) |
commit | ddecddcb420a9f87b203d0f228c6e41b65af5e53 (patch) | |
tree | 3b5a837df68ce1bb060a08b25b46cb715bda926b /sugar | |
parent | 4df052e5de8a37d694a28bbdb7ce7bf5a9281f41 (diff) |
Remove unused methods from the activity services. Cleanups.
Diffstat (limited to 'sugar')
-rw-r--r-- | sugar/activity/activity.py | 4 | ||||
-rw-r--r-- | sugar/activity/activityservice.py | 15 |
2 files changed, 0 insertions, 19 deletions
diff --git a/sugar/activity/activity.py b/sugar/activity/activity.py index 7f6ad9b..842b415 100644 --- a/sugar/activity/activity.py +++ b/sugar/activity/activity.py @@ -382,10 +382,6 @@ class Activity(Window, gtk.Container): self._share_id = self._pservice.connect("activity-shared", self._internal_share_cb) self._pservice.share_activity(self) - def execute(self, command, args): - """Execute the given command with args""" - return False - def _realize_cb(self, window): wm.set_bundle_id(window.window, self.get_service_name()) wm.set_activity_id(window.window, self._activity_id) diff --git a/sugar/activity/activityservice.py b/sugar/activity/activityservice.py index 97a6034..c9ee482 100644 --- a/sugar/activity/activityservice.py +++ b/sugar/activity/activityservice.py @@ -56,21 +56,6 @@ class ActivityService(dbus.service.Object): self._activity = activity @dbus.service.method(_ACTIVITY_INTERFACE) - def share(self): - """Called by the shell to request the activity to share itself on the network.""" - self._activity.share() - - @dbus.service.method(_ACTIVITY_INTERFACE) - def get_shared(self): - """Returns True if the activity is shared on the mesh.""" - return self._activity.get_shared() - - @dbus.service.method(_ACTIVITY_INTERFACE, - in_signature="sas", out_signature="b") - def execute(self, command, args): - return self._activity.execute(command, args) - - @dbus.service.method(_ACTIVITY_INTERFACE) def set_active(self, active): logging.debug('ActivityService.set_active: %s.' % active) self._activity.props.active = active |