diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-26 11:26:18 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-26 13:25:52 +0200 |
commit | cf8f1c5a5fa87dbc674546cb25e0b533f9bbd5ff (patch) | |
tree | d5945740f91bd6bb920cb1c5be0a87a8dc5a5ac8 /Userland/Libraries/LibWeb/CSS/StyleProperties.cpp | |
parent | bb399c6955b0995a5833acdc1c377de2ebdcb268 (diff) | |
download | serenity-cf8f1c5a5fa87dbc674546cb25e0b533f9bbd5ff.zip |
LibWeb: Remove unused CSS::StyleProperties::string_or_fallback()
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleProperties.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleProperties.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp index 51618ea1fd..60ef9f9ccb 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp @@ -107,14 +107,6 @@ LengthBox StyleProperties::length_box(CSS::PropertyID left_id, CSS::PropertyID t return box; } -String StyleProperties::string_or_fallback(CSS::PropertyID id, const StringView& fallback) const -{ - auto value = property(id); - if (!value.has_value()) - return fallback; - return value.value()->to_string(); -} - Color StyleProperties::color_or_fallback(CSS::PropertyID id, const DOM::Document& document, Color fallback) const { auto value = property(id); |