From: Uwe Hermann Date: Thu, 28 Aug 2014 19:38:39 +0000 (+0200) Subject: sdcard_spi/usb_packet: Drop unused variables. X-Git-Tag: libsigrokdecode-0.4.0~169 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e228150a0e8d60ef3fcaa6f077305a8e6045dfe8;p=libsigrokdecode.git sdcard_spi/usb_packet: Drop unused variables. --- diff --git a/decoders/sdcard_spi/pd.py b/decoders/sdcard_spi/pd.py index cbf59d7..6717c81 100644 --- a/decoders/sdcard_spi/pd.py +++ b/decoders/sdcard_spi/pd.py @@ -98,7 +98,6 @@ class Decoder(srd.Decoder): def __init__(self, **kwargs): self.state = 'IDLE' - self.samplenum = 0 self.ss, self.es = 0, 0 self.bit_ss, self.bit_es = 0, 0 self.cmd_ss, self.cmd_es = 0, 0 diff --git a/decoders/usb_packet/pd.py b/decoders/usb_packet/pd.py index 1bbf580..a9c8b25 100644 --- a/decoders/usb_packet/pd.py +++ b/decoders/usb_packet/pd.py @@ -192,7 +192,6 @@ class Decoder(srd.Decoder): ) def __init__(self): - self.samplenum = 0 self.bits = [] self.packet = [] self.packet_summary = ''