summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarol Kosek <krkk@serenityos.org>2023-01-11 22:59:35 +0100
committerJelle Raaijmakers <jelle@gmta.nl>2023-01-12 13:56:11 +0100
commit17012b266c06f4ca6c6210e63015ce5f849b50c7 (patch)
tree5fffa29e8892b8d2fc3af01ea6eadae4597f07fb
parentb0fad409bfc8ec20e86966ca8da4a119b1e9732b (diff)
downloadserenity-17012b266c06f4ca6c6210e63015ce5f849b50c7.zip
LibGUI: Remove unused AbstractThemePreview::on_theme_load_from_file
-rw-r--r--Userland/Libraries/LibGUI/AbstractThemePreview.cpp2
-rw-r--r--Userland/Libraries/LibGUI/AbstractThemePreview.h1
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 {