From: Bert Vermeulen Date: Thu, 14 Nov 2013 20:56:21 +0000 (+0100) Subject: Drop obsolete report() method. X-Git-Tag: libsigrokdecode-0.3.0~234 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0169f19c53e195df2f96c4df731ad3214c59e20a;p=libsigrokdecode.git Drop obsolete report() method. --- diff --git a/decoders/avr_isp/pd.py b/decoders/avr_isp/pd.py index 789a7f9..5c2fd3a 100644 --- a/decoders/avr_isp/pd.py +++ b/decoders/avr_isp/pd.py @@ -54,9 +54,6 @@ class Decoder(srd.Decoder): # self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putx(self, data): self.put(self.cmd_ss, self.cmd_es, self.out_ann, data) diff --git a/decoders/can/pd.py b/decoders/can/pd.py index 1495e5e..ee32e7a 100644 --- a/decoders/can/pd.py +++ b/decoders/can/pd.py @@ -73,9 +73,6 @@ class Decoder(srd.Decoder): self.bit_width = float(self.samplerate) / float(self.options['bitrate']) self.bitpos = (self.bit_width / 100.0) * self.options['sample_point'] - def report(self): - pass - # Generic helper for CAN bit annotations. def putg(self, ss, es, data): left, right = int(self.bitpos), int(self.bit_width - self.bitpos) diff --git a/decoders/dcf77/pd.py b/decoders/dcf77/pd.py index b708fbc..6464360 100644 --- a/decoders/dcf77/pd.py +++ b/decoders/dcf77/pd.py @@ -83,9 +83,6 @@ class Decoder(srd.Decoder): if key == srd.SRD_CONF_SAMPLERATE: self.samplerate = value - def report(self): - pass - def putx(self, data): # Annotation for a single DCF77 bit. self.put(self.ss_bit, self.es_bit, self.out_ann, data) diff --git a/decoders/ds1307/pd.py b/decoders/ds1307/pd.py index 8652d1b..bb904e7 100644 --- a/decoders/ds1307/pd.py +++ b/decoders/ds1307/pd.py @@ -66,9 +66,6 @@ class Decoder(srd.Decoder): def start(self): self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putx(self, data): self.put(self.ss, self.es, self.out_ann, data) diff --git a/decoders/edid/pd.py b/decoders/edid/pd.py index 704f350..323834b 100644 --- a/decoders/edid/pd.py +++ b/decoders/edid/pd.py @@ -103,9 +103,6 @@ class Decoder(srd.Decoder): def start(self): self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def decode(self, ss, es, data): cmd, data = data diff --git a/decoders/guess_bitrate/pd.py b/decoders/guess_bitrate/pd.py index 9acce50..e30be12 100644 --- a/decoders/guess_bitrate/pd.py +++ b/decoders/guess_bitrate/pd.py @@ -54,9 +54,6 @@ class Decoder(srd.Decoder): # self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def decode(self, ss, es, data): for (self.samplenum, pins) in data: diff --git a/decoders/i2c/pd.py b/decoders/i2c/pd.py index dc7c5b5..9f8cbaf 100644 --- a/decoders/i2c/pd.py +++ b/decoders/i2c/pd.py @@ -118,9 +118,6 @@ class Decoder(srd.Decoder): self.out_bitrate = self.register(srd.OUTPUT_META, meta=(int, 'Bitrate', 'Bitrate from Start bit to Stop bit')) - def report(self): - pass - def putx(self, data): self.put(self.startsample, self.samplenum, self.out_ann, data) diff --git a/decoders/i2cdemux/pd.py b/decoders/i2cdemux/pd.py index d86c597..3904643 100644 --- a/decoders/i2cdemux/pd.py +++ b/decoders/i2cdemux/pd.py @@ -45,9 +45,6 @@ class Decoder(srd.Decoder): def start(self): self.out_proto = [] - def report(self): - pass - # Grab I2C packets into a local cache, until an I2C STOP condition # packet comes along. At some point before that STOP condition, there # will have been an ADDRESS READ or ADDRESS WRITE which contains the diff --git a/decoders/i2cfilter/pd.py b/decoders/i2cfilter/pd.py index 4fe3a9c..664bbcd 100644 --- a/decoders/i2cfilter/pd.py +++ b/decoders/i2cfilter/pd.py @@ -54,9 +54,6 @@ class Decoder(srd.Decoder): if self.options['direction'] not in ('both', 'read', 'write'): raise Exception('Invalid direction (valid: read/write/both).') - def report(self): - pass - # Grab I2C packets into a local cache, until an I2C STOP condition # packet comes along. At some point before that STOP condition, there # will have been an ADDRESS READ or ADDRESS WRITE which contains the diff --git a/decoders/i2s_dump/pd.py b/decoders/i2s_dump/pd.py index bbeefbe..d922a07 100644 --- a/decoders/i2s_dump/pd.py +++ b/decoders/i2s_dump/pd.py @@ -56,9 +56,6 @@ class Decoder(srd.Decoder): # of '-' means 'stdout'. self.f = self.file_open(self.options['filename']) - def report(self): - pass - # TODO: Lots of hard-coded fields in here. def write_wav_header(self): # Chunk descriptor diff --git a/decoders/jtag/pd.py b/decoders/jtag/pd.py index 5d4ee8e..8403add 100644 --- a/decoders/jtag/pd.py +++ b/decoders/jtag/pd.py @@ -60,9 +60,6 @@ class Decoder(srd.Decoder): self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def advance_state_machine(self, tms): self.oldstate = self.state diff --git a/decoders/jtag_stm32/pd.py b/decoders/jtag_stm32/pd.py index 3daa024..aa746e0 100644 --- a/decoders/jtag_stm32/pd.py +++ b/decoders/jtag_stm32/pd.py @@ -144,9 +144,6 @@ class Decoder(srd.Decoder): # self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def handle_reg_bypass(self, cmd, bits): # TODO self.put(self.ss, self.es, self.out_ann, [0, ['BYPASS: ' + bits]]) diff --git a/decoders/lpc/pd.py b/decoders/lpc/pd.py index 313b7d2..f097574 100644 --- a/decoders/lpc/pd.py +++ b/decoders/lpc/pd.py @@ -154,9 +154,6 @@ class Decoder(srd.Decoder): # self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putb(self, data): self.put(self.ss_block, self.es_block, self.out_ann, data) diff --git a/decoders/maxim_ds28ea00/pd.py b/decoders/maxim_ds28ea00/pd.py index 69ace69..a67e70e 100644 --- a/decoders/maxim_ds28ea00/pd.py +++ b/decoders/maxim_ds28ea00/pd.py @@ -67,9 +67,6 @@ class Decoder(srd.Decoder): def start(self): self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putx(self, data): self.put(self.ss, self.es, self.out_ann, data) diff --git a/decoders/midi/pd.py b/decoders/midi/pd.py index 6f2f1c7..7c4fa9a 100644 --- a/decoders/midi/pd.py +++ b/decoders/midi/pd.py @@ -55,9 +55,6 @@ class Decoder(srd.Decoder): # self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putx(self, data): self.put(self.ss_block, self.es_block, self.out_ann, data) diff --git a/decoders/mlx90614/pd.py b/decoders/mlx90614/pd.py index f0bed5c..57c96bc 100644 --- a/decoders/mlx90614/pd.py +++ b/decoders/mlx90614/pd.py @@ -47,9 +47,6 @@ class Decoder(srd.Decoder): # self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putx(self, data): self.put(self.ss, self.es, self.out_ann, data) diff --git a/decoders/mx25lxx05d/pd.py b/decoders/mx25lxx05d/pd.py index 68335d4..1b6c6ac 100644 --- a/decoders/mx25lxx05d/pd.py +++ b/decoders/mx25lxx05d/pd.py @@ -114,9 +114,6 @@ class Decoder(srd.Decoder): # self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putx(self, data): # Simplification, most annotations span exactly one SPI byte/packet. self.put(self.ss, self.es, self.out_ann, data) diff --git a/decoders/mxc6225xu/pd.py b/decoders/mxc6225xu/pd.py index de7efaf..8b119e8 100644 --- a/decoders/mxc6225xu/pd.py +++ b/decoders/mxc6225xu/pd.py @@ -86,9 +86,6 @@ class Decoder(srd.Decoder): # self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putx(self, data): self.put(self.ss, self.es, self.out_ann, data) diff --git a/decoders/nunchuk/pd.py b/decoders/nunchuk/pd.py index 78eacea..5c719cb 100644 --- a/decoders/nunchuk/pd.py +++ b/decoders/nunchuk/pd.py @@ -51,9 +51,6 @@ class Decoder(srd.Decoder): # self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putx(self, data): # Helper for annotations which span exactly one I2C packet. self.put(self.ss, self.es, self.out_ann, data) diff --git a/decoders/onewire_link/pd.py b/decoders/onewire_link/pd.py index bc44ce9..9c4913c 100644 --- a/decoders/onewire_link/pd.py +++ b/decoders/onewire_link/pd.py @@ -173,9 +173,6 @@ class Decoder(srd.Decoder): '(%2.1fus-%2.1fus) should be inside (7.3us, 10.0us).' % (time_min*1000000, time_max*1000000)]]) - def report(self): - pass - def decode(self, ss, es, data): if self.samplerate is None: raise Exception("Cannot decode without samplerate.") diff --git a/decoders/onewire_network/pd.py b/decoders/onewire_network/pd.py index 6ab8f8e..67dfe45 100644 --- a/decoders/onewire_network/pd.py +++ b/decoders/onewire_network/pd.py @@ -65,9 +65,6 @@ class Decoder(srd.Decoder): self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putx(self, data): # Helper function for most annotations. self.put(self.beg, self.end, self.out_ann, data) diff --git a/decoders/pan1321/pd.py b/decoders/pan1321/pd.py index d9700b2..4d9dc9d 100644 --- a/decoders/pan1321/pd.py +++ b/decoders/pan1321/pd.py @@ -52,9 +52,6 @@ class Decoder(srd.Decoder): # self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putx(self, data): self.put(self.ss_block, self.es_block, self.out_ann, data) diff --git a/decoders/parallel/pd.py b/decoders/parallel/pd.py index 9c20354..f4ddb1e 100644 --- a/decoders/parallel/pd.py +++ b/decoders/parallel/pd.py @@ -102,9 +102,6 @@ class Decoder(srd.Decoder): self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putpb(self, data): self.put(self.ss_item, self.es_item, self.out_proto, data) diff --git a/decoders/rtc8564/pd.py b/decoders/rtc8564/pd.py index 3abd1d8..16bbd65 100644 --- a/decoders/rtc8564/pd.py +++ b/decoders/rtc8564/pd.py @@ -59,9 +59,6 @@ class Decoder(srd.Decoder): # self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putx(self, data): self.put(self.ss, self.es, self.out_ann, data) diff --git a/decoders/sdcard_spi/pd.py b/decoders/sdcard_spi/pd.py index de3adbd..3ffa1e5 100644 --- a/decoders/sdcard_spi/pd.py +++ b/decoders/sdcard_spi/pd.py @@ -101,9 +101,6 @@ class Decoder(srd.Decoder): # self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def putx(self, data): self.put(self.cmd_ss, self.cmd_es, self.out_ann, data) diff --git a/decoders/tlc5620/pd.py b/decoders/tlc5620/pd.py index 395267d..5c9b819 100644 --- a/decoders/tlc5620/pd.py +++ b/decoders/tlc5620/pd.py @@ -68,9 +68,6 @@ class Decoder(srd.Decoder): # self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def handle_11bits(self): s = "".join(str(i) for i in self.bits[:2]) self.dac_select = s = dacs[int(s, 2)] diff --git a/decoders/transitioncounter/pd.py b/decoders/transitioncounter/pd.py index 09164c0..7dd88ed 100644 --- a/decoders/transitioncounter/pd.py +++ b/decoders/transitioncounter/pd.py @@ -46,9 +46,6 @@ class Decoder(srd.Decoder): # self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def decode(self, ss, es, data): for (samplenum, s) in data: diff --git a/decoders/uart/pd.py b/decoders/uart/pd.py index 8902780..f010480 100644 --- a/decoders/uart/pd.py +++ b/decoders/uart/pd.py @@ -141,9 +141,6 @@ class Decoder(srd.Decoder): # The width of one UART bit in number of samples. self.bit_width = float(self.samplerate) / float(self.options['baudrate']) - def report(self): - pass - # Return true if we reached the middle of the desired bit, false otherwise. def reached_bit(self, rxtx, bitnum): # bitpos is the samplenumber which is in the middle of the diff --git a/decoders/uart_dump/pd.py b/decoders/uart_dump/pd.py index ebbcb33..96a5e3c 100644 --- a/decoders/uart_dump/pd.py +++ b/decoders/uart_dump/pd.py @@ -75,9 +75,6 @@ class Decoder(srd.Decoder): self.f_rx = self.file_open(self.options['filename_rx']) self.f_tx = self.file_open(self.options['filename_tx']) - def report(self): - pass - def decode(self, ss, es, data): ptype, rxtx, pdata = data diff --git a/decoders/usb_packet/pd.py b/decoders/usb_packet/pd.py index 8e981ee..c651a7d 100644 --- a/decoders/usb_packet/pd.py +++ b/decoders/usb_packet/pd.py @@ -179,9 +179,6 @@ class Decoder(srd.Decoder): self.out_proto = self.register(srd.OUTPUT_PYTHON) self.out_ann = self.register(srd.OUTPUT_ANN) - def report(self): - pass - def handle_packet(self): packet = '' for (bit, ss, es) in self.bits: diff --git a/decoders/usb_signalling/pd.py b/decoders/usb_signalling/pd.py index 3760dea..4fbc8a3 100644 --- a/decoders/usb_signalling/pd.py +++ b/decoders/usb_signalling/pd.py @@ -119,9 +119,6 @@ class Decoder(srd.Decoder): self.bitwidth = float(self.samplerate) / float(self.bitrate) self.halfbit = int(self.bitwidth / 2) - def report(self): - pass - def putpx(self, data): self.put(self.samplenum, self.samplenum, self.out_proto, data)