From c014393adb6de84fe50ae3d1252908e263111dbc Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 13 Aug 2019 12:37:08 +1000 Subject: [PATCH] wacom: time_to_bytes is obsolete now Signed-off-by: Peter Hutterer --- tuhi/wacom.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tuhi/wacom.py b/tuhi/wacom.py index 348c305..ca45e68 100644 --- a/tuhi/wacom.py +++ b/tuhi/wacom.py @@ -677,11 +677,6 @@ class WacomProtocolBase(WacomProtocolLowLevelComm): def e3_command(self): self.p.execute(Interactions.UNKNOWN_E3) - def time_to_bytes(self): - # Device time is UTC - current_time = time.strftime('%y%m%d%H%M%S', time.gmtime()) - return [int(i) for i in binascii.unhexlify(current_time)] - @classmethod def time_from_bytes(self, data): assert len(data) >= 6 @@ -1063,10 +1058,6 @@ class WacomProtocolIntuosPro(WacomProtocolSlate): assert(protocol_version >= ProtocolVersion.INTUOS_PRO) super().__init__(device, uuid, protocol_version=protocol_version) - def time_to_bytes(self): - t = int(time.time()) - return list(t.to_bytes(length=4, byteorder='little')) + [0x00, 0x00] - @classmethod def time_from_bytes(self, data): seconds = int.from_bytes(data[0:4], byteorder='little')