mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
tests/dbusmock/polkitd: Remove unwanted method, from a fprintd copy-paste
This commit is contained in:
@ -99,13 +99,3 @@ def SetAllowed(self, actions):
|
|||||||
'''Set allowed actions'''
|
'''Set allowed actions'''
|
||||||
|
|
||||||
self.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]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user