From 17012b266c06f4ca6c6210e63015ce5f849b50c7 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Wed, 11 Jan 2023 22:59:35 +0100 Subject: LibGUI: Remove unused AbstractThemePreview::on_theme_load_from_file --- Userland/Libraries/LibGUI/AbstractThemePreview.cpp | 2 -- Userland/Libraries/LibGUI/AbstractThemePreview.h | 1 - 2 files changed, 3 deletions(-) diff --git a/Userland/Libraries/LibGUI/AbstractThemePreview.cpp b/Userland/Libraries/LibGUI/AbstractThemePreview.cpp index 1cd8993fef..d77fac7c51 100644 --- a/Userland/Libraries/LibGUI/AbstractThemePreview.cpp +++ b/Userland/Libraries/LibGUI/AbstractThemePreview.cpp @@ -92,8 +92,6 @@ ErrorOr AbstractThemePreview::set_theme_from_file(Core::File& file) m_preview_palette = Gfx::Palette(Gfx::PaletteImpl::create_with_anonymous_buffer(theme)); set_preview_palette(m_preview_palette); - if (on_theme_load_from_file) - on_theme_load_from_file(file.filename()); return {}; } diff --git a/Userland/Libraries/LibGUI/AbstractThemePreview.h b/Userland/Libraries/LibGUI/AbstractThemePreview.h index 680dcbe541..66791a4605 100644 --- a/Userland/Libraries/LibGUI/AbstractThemePreview.h +++ b/Userland/Libraries/LibGUI/AbstractThemePreview.h @@ -29,7 +29,6 @@ public: void paint_window(StringView title, Gfx::IntRect const& rect, Gfx::WindowTheme::WindowState, Gfx::Bitmap const& icon, int button_count = 3); - Function on_theme_load_from_file; Function on_palette_change; struct Window { -- cgit v1.2.3