From 6134061d3cc8ca0b2a3a8b26189c0aca2e7978e4 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sat, 4 Sep 2021 15:39:01 +0200 Subject: [PATCH] Remove unused icon_filename, window_icon globals. On Gtk4, these have never been part of a released version, and can be directly removed. --- lib/matplotlib/backends/backend_gtk4.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/matplotlib/backends/backend_gtk4.py b/lib/matplotlib/backends/backend_gtk4.py index 0babb1ff4974..3ffff77792db 100644 --- a/lib/matplotlib/backends/backend_gtk4.py +++ b/lib/matplotlib/backends/backend_gtk4.py @@ -658,14 +658,6 @@ def trigger(self, *args, **kwargs): clipboard.set(pb) -# Define the file to use as the GTk icon -if sys.platform == 'win32': - icon_filename = 'matplotlib.png' -else: - icon_filename = 'matplotlib.svg' -window_icon = str(cbook._get_data_path('images', icon_filename)) - - backend_tools.ToolSaveFigure = SaveFigureGTK4 backend_tools.ToolConfigureSubplots = ConfigureSubplotsGTK4 backend_tools.ToolRubberband = RubberbandGTK4