From 552e06a0fcf034cf69703a88dc8cb9f057f3a832 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 9 Aug 2019 14:09:55 +1000 Subject: [PATCH] wacom: drop the now-obsolete send_nordic_command_sync Signed-off-by: Peter Hutterer --- tuhi/wacom.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tuhi/wacom.py b/tuhi/wacom.py index 2b70467..605964e 100644 --- a/tuhi/wacom.py +++ b/tuhi/wacom.py @@ -514,25 +514,6 @@ class WacomProtocolLowLevelComm(GObject.Object): elif data[0] != 0x00: raise WacomException(f'unknown error: {data[0]:02x}') - def send_nordic_command_sync(self, - command, - expected_opcode=0xb3, - arguments=None): - if arguments is None: - arguments = [0x00] - - self.send_nordic_command(command, arguments) - - if expected_opcode is None: - return None - - args = self.wait_nordic_data(expected_opcode, 5) - - if expected_opcode == 0xb3: # generic ACK - self.check_ack(args) - - return args - # The callback used by the protocol messages def nordic_data_exchange(self, request, requires_reply=False, userdata=None, timeout=None):