[pitivi/1.0] previewers: Remove unused AudioPreviewer._start field



commit 78da1a3b29add08063766101f72d44eec92930c7
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Mon Sep 17 06:15:12 2018 +0200

    previewers: Remove unused AudioPreviewer._start field

 pitivi/timeline/previewers.py | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/pitivi/timeline/previewers.py b/pitivi/timeline/previewers.py
index e2312a52..5693528c 100644
--- a/pitivi/timeline/previewers.py
+++ b/pitivi/timeline/previewers.py
@@ -972,7 +972,6 @@ class AudioPreviewer(Previewer, Zoomable, Loggable):
         self.n_samples = asset.get_duration() / SAMPLE_DURATION
         self.samples = None
         self.peaks = None
-        self._start = 0
         self._end = 0
         self._surface_x = 0
 
@@ -1105,7 +1104,6 @@ class AudioPreviewer(Previewer, Zoomable, Loggable):
         end = int((drawn_start + drawn_duration) / SAMPLE_DURATION) + num_inpoint_samples
 
         if self._force_redraw or self._surface_x > clipped_rect.x or self._end < end:
-            self._start = start
             end = int(min(self.n_samples, end + (self.pixelToNs(MARGIN) /
                                                  SAMPLE_DURATION)))
             self._end = end


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]