[gnome-music/wip/mschraal/player-factor-out-gstreamer] player: remove unused vars
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/player-factor-out-gstreamer] player: remove unused vars
- Date: Sun, 18 Feb 2018 15:54:13 +0000 (UTC)
commit 1d3a4306cdbbada1f5e2e0024fcfe0785b23111d
Author: Marinus Schraal <mschraal gnome org>
Date: Sun Feb 18 16:07:55 2018 +0100
player: remove unused vars
gnomemusic/player.py | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index df016d8..dfb22f6 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -107,8 +107,6 @@ class Player(GObject.GObject):
Gst.init(None)
GstPbutils.pb_utils_init()
- self._seconds_period = 0
-
self._discoverer = GstPbutils.Discoverer()
self._discoverer.connect('discovered', self._on_discovered)
self._discoverer.start()
@@ -649,8 +647,6 @@ class Player(GObject.GObject):
position = self._player.position
if position > 0:
- self.played_seconds += self._seconds_period / 1000
-
percentage = tick / duration
if (not self._lastfm.scrobbled
and duration > 30
@@ -685,8 +681,6 @@ class Player(GObject.GObject):
@log
def _set_duration(self, duration):
- self.duration = duration
- self.played_seconds = 0
self._progress_scale.set_range(0.0, duration * 60)
@log
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]