[gnome-music/wip/jfelder/core-playlists-view] player: Remove some unused attributes and methods
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/core-playlists-view] player: Remove some unused attributes and methods
- Date: Thu, 11 Jul 2019 21:13:09 +0000 (UTC)
commit 9b5694cd4590271ff8d18ff2e0f9ea3df150de78
Author: Jean Felder <jfelder src gnome org>
Date: Thu Jul 11 23:12:06 2019 +0200
player: Remove some unused attributes and methods
gnomemusic/player.py | 38 --------------------------------------
1 file changed, 38 deletions(-)
---
diff --git a/gnomemusic/player.py b/gnomemusic/player.py
index d452b2db..619987b8 100644
--- a/gnomemusic/player.py
+++ b/gnomemusic/player.py
@@ -85,8 +85,6 @@ class PlayerPlaylist(GObject.GObject):
'song-validated': (GObject.SignalFlags.RUN_FIRST, None, (int, int)),
}
- _nb_songs_max = 10
-
repeat_mode = GObject.Property(type=int, default=RepeatMode.NONE)
def __repr__(self):
@@ -99,8 +97,6 @@ class PlayerPlaylist(GObject.GObject):
GstPbutils.pb_utils_init()
self._app = application
- self._songs = []
- self._shuffle_indexes = []
self._position = 0
self._type = -1
@@ -115,25 +111,6 @@ class PlayerPlaylist(GObject.GObject):
self.connect("notify::repeat-mode", self._on_repeat_mode_changed)
- @log
- def set_playlist(self, playlist_type, playlist_id, model, model_iter=None):
- """Set a new playlist or change the song being played
-
- If no song is requested (through model_iter), a song will be
- automatically selected:
- * the first song in a linear mode
- * a random song in shuffle mode
-
- :param PlayerPlaylist.Type playlist_type: playlist type
- :param string playlist_id: unique identifer to recognize the playlist
- :param GtkListStore model: list of songs to play
- :param GtkTreeIter model_iter: requested song
-
- :return: True if the playlist has been updated. False otherwise
- :rtype: bool
- """
- pass
-
@log
def change_position(self, prev_pos, new_pos):
"""Change order of a song in the playlist
@@ -521,21 +498,6 @@ class Player(GObject.GObject):
else:
self.play()
- @log
- def set_playlist(self, playlist_type, playlist_id, model, iter_=None):
- """Set a new playlist or change the song being played.
-
- :param PlayerPlaylist.Type playlist_type: playlist type
- :param string playlist_id: unique identifer to recognize the playlist
- :param GtkListStore model: list of songs to play
- :param GtkTreeIter model_iter: requested song
- """
- playlist_changed = self._playlist.set_playlist(
- playlist_type, playlist_id, model, iter_)
-
- if playlist_changed:
- self.emit('playlist-changed')
-
@log
def playlist_change_position(self, prev_pos, new_pos):
"""Change order of a song in the playlist.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]