summaryrefslogtreecommitdiff
path: root/decoders/cec/protocoldata.py
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-09-09 17:35:55 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2018-09-09 17:39:01 +0200
commit89e636c4b81463b902bd7768ab1f7f3cfb525bb1 (patch)
treedb5cc15b7d2216af02a4e7f02728492bfd49f3ca /decoders/cec/protocoldata.py
parent8a8b516aff4005faeea3df0f3ecb22527c10ae8d (diff)
downloadlibsigrokdecode-89e636c4b81463b902bd7768ab1f7f3cfb525bb1.tar.gz
libsigrokdecode-89e636c4b81463b902bd7768ab1f7f3cfb525bb1.zip
cec: Replace unneeded decode_opcode().
Diffstat (limited to 'decoders/cec/protocoldata.py')
-rw-r--r--decoders/cec/protocoldata.py6
1 files changed, 0 insertions, 6 deletions
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'