[gnome-music/wip/jfelder/gtk4-v3: 167/175] defaulticon: Remove unused scale argument




commit ebf5e8b317e4ee0244ab97b3eabc176002b27251
Author: Marinus Schraal <mschraal gnome org>
Date:   Sat Feb 5 16:10:29 2022 +0100

    defaulticon: Remove unused scale argument

 gnomemusic/defaulticon.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/defaulticon.py b/gnomemusic/defaulticon.py
index c54e5114f..f7c9338f9 100644
--- a/gnomemusic/defaulticon.py
+++ b/gnomemusic/defaulticon.py
@@ -47,7 +47,7 @@ class DefaultIcon(GObject.GObject):
         self._widget = widget
 
     def _make_default_icon(
-            self, icon_type: DefaultIconType, art_size: ArtSize, scale: int,
+            self, icon_type: DefaultIconType, art_size: ArtSize,
             dark: bool) -> CoverPaintable:
         paintable = CoverPaintable(art_size, self._widget, icon_type=icon_type)
 
@@ -70,8 +70,7 @@ class DefaultIcon(GObject.GObject):
         scale = self._widget.props.scale_factor
 
         if (icon_type, art_size, scale, dark) not in self._cache.keys():
-            new_icon = self._make_default_icon(
-                icon_type, art_size, scale, dark)
+            new_icon = self._make_default_icon(icon_type, art_size, dark)
             self._cache[(icon_type, art_size, scale, dark)] = new_icon
 
         return self._cache[(icon_type, art_size, scale, dark)]


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