[gnome-music/wip/jfelder/clean-albumsview: 3/4] albumsview: Remove unused method update_title



commit dd603b20a797b28e45024da4a97943bfe7645f20
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Mar 29 12:27:55 2018 +0200

    albumsview: Remove unused method update_title

 gnomemusic/views/albumsview.py | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/gnomemusic/views/albumsview.py b/gnomemusic/views/albumsview.py
index c93a7542..e460ad4e 100644
--- a/gnomemusic/views/albumsview.py
+++ b/gnomemusic/views/albumsview.py
@@ -107,23 +107,16 @@ class AlbumsView(BaseView):
             return
 
         title = utils.get_media_title(item)
-        self._escaped_title = title
-        self._artist = utils.get_artist_name(item)
+        artist = utils.get_artist_name(item)
 
         self._album_widget.update(
-            self._artist, title, item, self._header_bar,
-            self._selection_toolbar)
+            artist, title, item, self._header_bar, self._selection_toolbar)
 
         self._header_bar.set_state(ToolbarState.CHILD_VIEW)
-        self._header_bar.header_bar.set_title(self._escaped_title)
-        self._header_bar.header_bar.set_subtitle(self._artist)
+        self._header_bar.header_bar.set_title(title)
+        self._header_bar.header_bar.set_subtitle(artist)
         self.set_visible_child(self._album_widget)
 
-    @log
-    def update_title(self):
-        self._header_bar.header_bar.set_title(self._escaped_title)
-        self._header_bar.header_bar.set_subtitle(self._artist)
-
     @log
     def populate(self):
         self._window.notifications_popup.push_loading()


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