From fdade5529dfe6714d29559bd091d99d6413f7f14 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 11 Jul 2019 15:31:20 +1000 Subject: [PATCH] tuhi: drop the live bits from our dbus bindings Not needed here --- tuhigui/tuhi.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tuhigui/tuhi.py b/tuhigui/tuhi.py index c559949..eefd31d 100644 --- a/tuhigui/tuhi.py +++ b/tuhigui/tuhi.py @@ -167,7 +167,6 @@ class TuhiKeteDevice(_DBusObject): objpath) self.manager = manager self.is_registering = False - self.live = False self._bluez_device = BlueZDevice(self.property('BlueZDevice')) self._bluez_device.connect('notify::connected', self._on_connected) @@ -228,23 +227,6 @@ class TuhiKeteDevice(_DBusObject): Gio.dbus_error_get_remote_error(e) != 'org.freedesktop.DBus.Error.ServiceUnknown'): raise e - def start_live(self, fd): - fd_list = Gio.UnixFDList.new() - fd_list.append(fd) - - res, fds = self.proxy.call_with_unix_fd_list_sync('org.freedesktop.tuhi1.Device.StartLive', - GLib.Variant('(h)', (fd,)), - Gio.DBusCallFlags.NO_AUTO_START, - -1, - fd_list, - None) - if res[0] == 0: - self.live = True - - def stop_live(self): - self.proxy.StopLive() - self.live = False - def json(self, timestamp): SUPPORTED_FILE_FORMAT = 1 return self.proxy.GetJSONData('(ut)', SUPPORTED_FILE_FORMAT, timestamp)