diff options
author | MacDue <macdue@dueutil.tech> | 2022-06-04 20:19:44 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-05 22:42:35 +0100 |
commit | fddff5f4f6b19d16d5f7749e2d8ea45360a36890 (patch) | |
tree | 5649a35d291e4fcb5b7c2750577086c4541e9b55 /Userland/Libraries | |
parent | c5796173755221e0253a1f9aaed8f582ce8cd617 (diff) | |
download | serenity-fddff5f4f6b19d16d5f7749e2d8ea45360a36890.zip |
LibCore: Remove ConfigFile::write_color_entry()
This method is currently unused and adds an unwanted dependency on
LibGfx.
This also adds some missing `LibGfx/Color.h` includes.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibCore/ConfigFile.cpp | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibCore/ConfigFile.h | 2 |
2 files changed, 0 insertions, 7 deletions
diff --git a/Userland/Libraries/LibCore/ConfigFile.cpp b/Userland/Libraries/LibCore/ConfigFile.cpp index b8474ca37f..d604c05e25 100644 --- a/Userland/Libraries/LibCore/ConfigFile.cpp +++ b/Userland/Libraries/LibCore/ConfigFile.cpp @@ -176,11 +176,6 @@ void ConfigFile::write_bool_entry(String const& group, String const& key, bool v write_entry(group, key, value ? "true" : "false"); } -void ConfigFile::write_color_entry(String const& group, String const& key, Color value) -{ - write_entry(group, key, String::formatted("{},{},{},{}", value.red(), value.green(), value.blue(), value.alpha())); -} - ErrorOr<void> ConfigFile::sync() { if (!m_dirty) diff --git a/Userland/Libraries/LibCore/ConfigFile.h b/Userland/Libraries/LibCore/ConfigFile.h index efb577376e..364d9e86cc 100644 --- a/Userland/Libraries/LibCore/ConfigFile.h +++ b/Userland/Libraries/LibCore/ConfigFile.h @@ -15,7 +15,6 @@ #include <AK/String.h> #include <AK/Vector.h> #include <LibCore/Stream.h> -#include <LibGfx/Color.h> namespace Core { @@ -48,7 +47,6 @@ public: void write_entry(String const& group, String const& key, String const& value); void write_num_entry(String const& group, String const& key, int value); void write_bool_entry(String const& group, String const& key, bool value); - void write_color_entry(String const& group, String const& key, Color value); void dump() const; |