From 8b369bf7bd54c5b96627c8e14d81f295b6090197 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 26 Feb 2022 08:33:45 +0100 Subject: [PATCH] LibWeb: Remove unused LineBox::ends_with_forced_line_break() --- Userland/Libraries/LibWeb/Layout/LineBox.cpp | 5 ----- Userland/Libraries/LibWeb/Layout/LineBox.h | 1 - 2 files changed, 6 deletions(-) diff --git a/Userland/Libraries/LibWeb/Layout/LineBox.cpp b/Userland/Libraries/LibWeb/Layout/LineBox.cpp index f22b0beea9..330ace7f9e 100644 --- a/Userland/Libraries/LibWeb/Layout/LineBox.cpp +++ b/Userland/Libraries/LibWeb/Layout/LineBox.cpp @@ -69,9 +69,4 @@ bool LineBox::is_empty_or_ends_in_whitespace() const return m_fragments.last().ends_in_whitespace(); } -bool LineBox::ends_with_forced_line_break() const -{ - return is(m_fragments.last().layout_node()); -} - } diff --git a/Userland/Libraries/LibWeb/Layout/LineBox.h b/Userland/Libraries/LibWeb/Layout/LineBox.h index 76cf5442fc..ca6156091f 100644 --- a/Userland/Libraries/LibWeb/Layout/LineBox.h +++ b/Userland/Libraries/LibWeb/Layout/LineBox.h @@ -27,7 +27,6 @@ public: bool is_empty_or_ends_in_whitespace() const; bool is_empty() const { return m_fragments.is_empty(); } - bool ends_with_forced_line_break() const; private: friend class BlockContainer;