mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
LibGfx: Remove unused static variable in SystemTheme
This was found by Clang 23's -Wunused-but-set-global.
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user