summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2017-12-22 02:35:12 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2017-12-22 12:18:13 +0100
commit0777df7434749962ca28fb66081cdacf24a16772 (patch)
treeb9a84a4bee77a8ea5e1b460053bc109533a7f05b /decoders
parent779c540dfa3780f3bb61ad46f28801952d5d190b (diff)
downloadlibsigrokdecode-0777df7434749962ca28fb66081cdacf24a16772.tar.gz
libsigrokdecode-0777df7434749962ca28fb66081cdacf24a16772.zip
sdcard_sd: remove unused .reset() method
The decoder's .reset() method seems to partially implement constructor's assignments, but is not referenced anywhere. There is neither a direct call site in the remainder of pd.py which uses the "reset" name, and runtime computation only references "handle_*()" methods for commands and responses. Drop the unused .reset() method in the individual decoder before the introduction of a common .reset() method approach for all decoders.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/sdcard_sd/pd.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/decoders/sdcard_sd/pd.py b/decoders/sdcard_sd/pd.py
index 4f10f7c..2382a15 100644
--- a/decoders/sdcard_sd/pd.py
+++ b/decoders/sdcard_sd/pd.py
@@ -92,10 +92,6 @@ class Decoder(srd.Decoder):
def putr(self, desc):
self.putt([self.last_cmd, ['Reply: %s' % desc]])
- def reset(self):
- self.cmd, self.arg = None, None
- self.token, self.state = [], 'GET COMMAND TOKEN'
-
def cmd_name(self, cmd):
c = acmd_names if self.is_acmd else cmd_names
return c.get(cmd, 'Unknown')