Skip to content

Commit

Permalink
LibWeb: Remove ImagePaintable::layout_box()
Browse files Browse the repository at this point in the history
This was not used.
  • Loading branch information
tcl3 committed Aug 26, 2024
1 parent c426795 commit 471885e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions Userland/Libraries/LibWeb/Painting/ImagePaintable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ void ImagePaintable::finalize()
document().unregister_viewport_client(*this);
}

Layout::ImageBox const& ImagePaintable::layout_box() const
{
return static_cast<Layout::ImageBox const&>(layout_node());
}

void ImagePaintable::paint(PaintContext& context, PaintPhase phase) const
{
if (!is_visible())
Expand Down
2 changes: 0 additions & 2 deletions Userland/Libraries/LibWeb/Painting/ImagePaintable.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ class ImagePaintable final

virtual void paint(PaintContext&, PaintPhase) const override;

Layout::ImageBox const& layout_box() const;

private:
// ^JS::Cell
virtual void visit_edges(Visitor&) override;
Expand Down

0 comments on commit 471885e

Please sign in to comment.