From 89e636c4b81463b902bd7768ab1f7f3cfb525bb1 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 9 Sep 2018 17:35:55 +0200 Subject: cec: Replace unneeded decode_opcode(). --- decoders/cec/protocoldata.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'decoders/cec/protocoldata.py') diff --git a/decoders/cec/protocoldata.py b/decoders/cec/protocoldata.py index fb80494..833ac7f 100644 --- a/decoders/cec/protocoldata.py +++ b/decoders/cec/protocoldata.py @@ -115,9 +115,3 @@ def decode_header(header): src = (header & 0xF0) >> 4 dst = (header & 0x0F) return (resolve_logical_address(src, 1), resolve_logical_address(dst, 0)) - -def decode_opcode(opcode): - if opcode in opcodes: - return opcodes[opcode] - else: - return 'Invalid' -- cgit v1.2.3-70-g09d2