diff options
author | Karol Kosek <krkk@serenityos.org> | 2023-01-11 22:59:35 +0100 |
---|---|---|
committer | Jelle Raaijmakers <jelle@gmta.nl> | 2023-01-12 13:56:11 +0100 |
commit | 17012b266c06f4ca6c6210e63015ce5f849b50c7 (patch) | |
tree | 5fffa29e8892b8d2fc3af01ea6eadae4597f07fb | |
parent | b0fad409bfc8ec20e86966ca8da4a119b1e9732b (diff) | |
download | serenity-17012b266c06f4ca6c6210e63015ce5f849b50c7.zip |
LibGUI: Remove unused AbstractThemePreview::on_theme_load_from_file
-rw-r--r-- | Userland/Libraries/LibGUI/AbstractThemePreview.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/AbstractThemePreview.h | 1 |
2 files changed, 0 insertions, 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<void> 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<void(DeprecatedString const&)> on_theme_load_from_file; Function<void()> on_palette_change; struct Window { |