From c151f0c3ce82b0e0172221a6dc54df9781f6c324 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Mon, 26 Feb 2024 12:49:47 +0800 Subject: [PATCH] waveform: remove unused setTimescale --- artiq/dashboard/waveform.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/artiq/dashboard/waveform.py b/artiq/dashboard/waveform.py index 34b855727..40ec948ae 100644 --- a/artiq/dashboard/waveform.py +++ b/artiq/dashboard/waveform.py @@ -180,9 +180,6 @@ class _BaseWaveform(pg.PlotWidget): self.stopped_x = stopped_x self.view_box.setLimits(xMax=stopped_x) - def setTimescale(self, timescale): - self.timescale = timescale - def setData(self, data): if len(data) == 0: self.x_data, self.y_data = [], [] @@ -465,8 +462,6 @@ class _WaveformView(QtWidgets.QWidget): def setTimescale(self, timescale): self._timescale = timescale self._top.setScale(1e-12 * timescale) - for i in range(self._model.rowCount()): - self._splitter.widget(i).setTimescale(timescale) def setStoppedX(self, stopped_x): self._stopped_x = stopped_x @@ -522,7 +517,6 @@ class _WaveformView(QtWidgets.QWidget): w = waveform_cls(name, width, precision, unit, parent=self._splitter) w.setXLink(self._ref_vb) w.setStoppedX(self._stopped_x) - w.setTimescale(self._timescale) w.cursorMove.connect(self.cursorMove) w.onCursorMove(self._cursor_x) action = QtWidgets.QAction("Delete waveform", w)