From 084e5bfafd7b14c7c00a22d02dcb2d1e05a6fe73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 23 Mar 2021 19:00:33 +0100 Subject: [PATCH] tests/dbusmock/polkitd: Remove unwanted method, from a fprintd copy-paste --- tests/dbusmock/polkitd.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/dbusmock/polkitd.py b/tests/dbusmock/polkitd.py index e74f017..3f4d078 100644 --- a/tests/dbusmock/polkitd.py +++ b/tests/dbusmock/polkitd.py @@ -99,13 +99,3 @@ def SetAllowed(self, actions): '''Set allowed actions''' self.allowed = actions - -@dbus.service.method(MAIN_IFACE, - in_signature='', out_signature='o') -def GetDefaultDevice(self): - devices = self.GetDevices() - if len(devices) < 1: - raise dbus.exceptions.DBusException( - 'No devices available', - name='net.reactivated.Fprint.Error.NoSuchDevice') - return devices[0]