1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:57:35 +00:00

LibGUI: Remove unused AbstractThemePreview::on_theme_load_from_file

This commit is contained in:
Karol Kosek 2023-01-11 22:59:35 +01:00 committed by Jelle Raaijmakers
parent b0fad409bf
commit 17012b266c
2 changed files with 0 additions and 3 deletions

View file

@ -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)); m_preview_palette = Gfx::Palette(Gfx::PaletteImpl::create_with_anonymous_buffer(theme));
set_preview_palette(m_preview_palette); set_preview_palette(m_preview_palette);
if (on_theme_load_from_file)
on_theme_load_from_file(file.filename());
return {}; return {};
} }

View file

@ -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); 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; Function<void()> on_palette_change;
struct Window { struct Window {