diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-07-12 17:54:20 +0300 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2022-07-12 17:54:55 +0300 |
commit | c70359ac043fed9dfd5d863890618385ae37a6b2 (patch) | |
tree | efcb01a768a3fa68d483bc70fc12084236db85a7 /Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp | |
parent | dc13ced1a7bbada5ac301d86b0df38ae89b87da2 (diff) | |
download | serenity-c70359ac043fed9dfd5d863890618385ae37a6b2.zip |
LibWeb: Remove unused variable in FlexFormattingContext
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp index 41056abeba..62536c2da7 100644 --- a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp @@ -1237,7 +1237,6 @@ CSS::AlignItems FlexFormattingContext::alignment_for_item(FlexItem const& item) void FlexFormattingContext::align_all_flex_items_along_the_cross_axis() { // FIXME: Take better care of margins - float line_cross_offset = 0; for (auto& flex_line : m_flex_lines) { for (auto* flex_item : flex_line.items) { float half_line_size = flex_line.cross_size / 2.0f; @@ -1258,8 +1257,6 @@ void FlexFormattingContext::align_all_flex_items_along_the_cross_axis() break; } } - - line_cross_offset += flex_line.cross_size; } } |