1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:37:45 +00:00

LibWeb: Remove unused code

The LineBoxFragment::Type enum was used earlier in the inline layouting,
but in the current algorithm there is a single type of LineBoxFragment.
This commit is contained in:
Sebastian Zaha 2023-07-17 17:12:54 +02:00 committed by Andreas Kling
parent 3fd870a429
commit a74c56bc1b
3 changed files with 4 additions and 13 deletions

View file

@ -17,13 +17,7 @@ class LineBoxFragment {
friend class LineBox;
public:
enum class Type {
Normal,
Leading,
Trailing,
};
LineBoxFragment(Node const& layout_node, int start, int length, CSSPixelPoint offset, CSSPixelSize size, CSSPixels border_box_top, CSSPixels border_box_bottom, Type type)
LineBoxFragment(Node const& layout_node, int start, int length, CSSPixelPoint offset, CSSPixelSize size, CSSPixels border_box_top, CSSPixels border_box_bottom)
: m_layout_node(layout_node)
, m_start(start)
, m_length(length)
@ -31,7 +25,6 @@ public:
, m_size(size)
, m_border_box_top(border_box_top)
, m_border_box_bottom(border_box_bottom)
, m_type(type)
{
}
@ -39,7 +32,6 @@ public:
int start() const { return m_start; }
int length() const { return m_length; }
CSSPixelRect const absolute_rect() const;
Type type() const { return m_type; }
CSSPixelPoint offset() const
{
@ -88,7 +80,6 @@ private:
CSSPixels m_border_box_top { 0 };
CSSPixels m_border_box_bottom { 0 };
CSSPixels m_baseline { 0 };
Type m_type { Type::Normal };
};
}