Remove unused methods from the activity services. Cleanups.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -55,21 +55,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)
|
||||
|
||||
Reference in New Issue
Block a user