From 29589378ff97b00f4685bd965bdb3ff900493dcf Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 23 Jan 2022 12:47:56 +0100 Subject: [PATCH] LibWeb: Remove unused InlineFormattingContext::available_width_at_line() --- .../Libraries/LibWeb/Layout/InlineFormattingContext.cpp | 8 -------- .../Libraries/LibWeb/Layout/InlineFormattingContext.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp index ec16eeaeba..dba4ec6941 100644 --- a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp @@ -92,14 +92,6 @@ void InlineFormattingContext::run(Box&, LayoutMode layout_mode) containing_block().set_height(content_height); } -float InlineFormattingContext::available_width_at_line(size_t line_index) const -{ - // TODO: Remove this function, along with the old-style splitting functions. - VERIFY_NOT_REACHED(); - auto info = available_space_for_line(line_index); - return info.right - info.left; -} - void InlineFormattingContext::dimension_box_on_line(Box& box, LayoutMode layout_mode) { if (is(box)) { diff --git a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.h b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.h index 269d74df24..c2aa557d67 100644 --- a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.h +++ b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.h @@ -23,8 +23,6 @@ public: virtual void run(Box&, LayoutMode) override; - float available_width_at_line(size_t line_index) const; - void dimension_box_on_line(Box&, LayoutMode); struct AvailableSpaceForLineInfo {