[gnome-music/wip/mschraal/core: 124/208] Remove unused url_hash



commit 228cfee97998308a50692c4eb39a6cf7020e7012
Author: Marinus Schraal <mschraal gnome org>
Date:   Sun Jun 23 22:10:44 2019 +0200

    Remove unused url_hash

 gnomemusic/coregrilo.py                      | 4 ++--
 gnomemusic/coremodel.py                      | 4 ++--
 gnomemusic/grilowrappers/grldleynasource.py  | 3 ---
 gnomemusic/grilowrappers/grltrackersource.py | 3 ---
 4 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/gnomemusic/coregrilo.py b/gnomemusic/coregrilo.py
index cd02db27..c6205843 100644
--- a/gnomemusic/coregrilo.py
+++ b/gnomemusic/coregrilo.py
@@ -12,8 +12,8 @@ class CoreGrilo(GObject.GObject):
         return "<CoreGrilo>"
 
     def __init__(
-            self, coremodel, model, _hash, url_hash, albums_model,
-            artists_model, coreselection):
+            self, coremodel, model, _hash, albums_model, artists_model,
+            coreselection):
         super().__init__()
 
         self._coremodel = coremodel
diff --git a/gnomemusic/coremodel.py b/gnomemusic/coremodel.py
index 92a8e956..a1194756 100644
--- a/gnomemusic/coremodel.py
+++ b/gnomemusic/coremodel.py
@@ -60,10 +60,10 @@ class CoreModel(GObject.GObject):
 
         self._album_store = None
         self._hash = {}
-        self._url_hash = {}
+
         print("PLAYLIST_MODEL", self._playlist_model)
         self._grilo = CoreGrilo(
-            self, self._model, self._hash, self._url_hash, self._album_model,
+            self, self._model, self._hash, self._album_model,
             self._artist_model, self._coreselection)
 
         self._selection_model.connect("items-changed", self._on_sel_changed)
diff --git a/gnomemusic/grilowrappers/grldleynasource.py b/gnomemusic/grilowrappers/grldleynasource.py
index 7e060218..41447e69 100644
--- a/gnomemusic/grilowrappers/grldleynasource.py
+++ b/gnomemusic/grilowrappers/grldleynasource.py
@@ -43,9 +43,6 @@ class GrlDLeynaSource(GObject.GObject):
         self._album_ids = {}
         self._artists_model = artists_model
         self._hash = _hash
-        # self._table = table
-        # Only way to figure out removed items
-        # self._url_table = url_hash
 
         Grl.init(None)
 
diff --git a/gnomemusic/grilowrappers/grltrackersource.py b/gnomemusic/grilowrappers/grltrackersource.py
index 199eeaa6..3c3b590e 100644
--- a/gnomemusic/grilowrappers/grltrackersource.py
+++ b/gnomemusic/grilowrappers/grltrackersource.py
@@ -43,9 +43,6 @@ class GrlTrackerSource(GObject.GObject):
         self._album_ids = {}
         self._artists_model = artists_model
         self._hash = _hash
-        # self._table = table
-        # Only way to figure out removed items
-        # self._url_table = url_hash
 
         Grl.init(None)
 


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