LibGfx: Remove unused static variable in SystemTheme

This was found by Clang 23's -Wunused-but-set-global.
This commit is contained in:
Lucas Chollet committed 2026-05-02 20:04:32 +02:00
1 parent 727c4a3d1a
commit f1179bf895
1 file changed
-3
@@ -15,8 +15,6 @@
namespace Gfx {
static SystemTheme dummy_theme;
static SystemTheme const* theme_page = &dummy_theme;
static Core::AnonymousBuffer theme_buffer;
Core::AnonymousBuffer& current_system_theme_buffer()
@@ -28,7 +26,6 @@ Core::AnonymousBuffer& current_system_theme_buffer()
void set_system_theme(Core::AnonymousBuffer buffer)
{
theme_buffer = move(buffer);
theme_page = theme_buffer.data<SystemTheme>();
}
ErrorOr<Core::AnonymousBuffer> load_system_theme(Core::ConfigFile const& file, Optional<ByteString> const& color_scheme)