From ddecddcb420a9f87b203d0f228c6e41b65af5e53 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 03 Jul 2007 18:55:46 +0000 Subject: Remove unused methods from the activity services. Cleanups. --- (limited to 'sugar') 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 -- cgit v0.9.1