From ca9d107a1a26feaf60e30d35e41b6118dede3bd9 Mon Sep 17 00:00:00 2001 From: Callum Law Date: Mon, 6 Oct 2025 17:17:42 +1300 Subject: [PATCH] LibWeb: Remove unused variable in `white-space` property serialization --- Libraries/LibWeb/CSS/StyleValues/ShorthandStyleValue.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Libraries/LibWeb/CSS/StyleValues/ShorthandStyleValue.cpp b/Libraries/LibWeb/CSS/StyleValues/ShorthandStyleValue.cpp index 5d94352102f..b9fe3f43671 100644 --- a/Libraries/LibWeb/CSS/StyleValues/ShorthandStyleValue.cpp +++ b/Libraries/LibWeb/CSS/StyleValues/ShorthandStyleValue.cpp @@ -845,8 +845,6 @@ String ShorthandStyleValue::to_string(SerializationMode mode) const auto text_wrap_mode_property = longhand(PropertyID::TextWrapMode); auto white_space_trim_property = longhand(PropertyID::WhiteSpaceTrim); - RefPtr value; - if (white_space_trim_property->is_keyword() && white_space_trim_property->as_keyword().keyword() == Keyword::None) { auto white_space_collapse_keyword = white_space_collapse_property->as_keyword().keyword(); auto text_wrap_mode_keyword = text_wrap_mode_property->as_keyword().keyword();