From 34df191e54d06959db055c8aa6101536e8bb80b3 Mon Sep 17 00:00:00 2001 From: Callum Law Date: Tue, 9 Jun 2026 23:52:28 +1200 Subject: [PATCH] LibWeb: Remove unused `SVGDecodedImageData::surface()` The only caller was removed in 395a126 --- Libraries/LibWeb/SVG/SVGDecodedImageData.cpp | 5 ----- Libraries/LibWeb/SVG/SVGDecodedImageData.h | 1 - 2 files changed, 6 deletions(-) diff --git a/Libraries/LibWeb/SVG/SVGDecodedImageData.cpp b/Libraries/LibWeb/SVG/SVGDecodedImageData.cpp index 8b168cf92a..82c1362239 100644 --- a/Libraries/LibWeb/SVG/SVGDecodedImageData.cpp +++ b/Libraries/LibWeb/SVG/SVGDecodedImageData.cpp @@ -306,11 +306,6 @@ Optional SVGDecodedImageData::frame_rect(size_t) const return {}; } -RefPtr SVGDecodedImageData::surface(size_t, Gfx::IntSize size) const -{ - return render_to_surface(size); -} - void SVGDecodedImageData::paint(DisplayListRecordingContext& context, size_t, Gfx::IntRect dst_rect, Gfx::ScalingMode) const { auto display_list = record_display_list(dst_rect.size(), context.display_list_recorder().resource_storage()); diff --git a/Libraries/LibWeb/SVG/SVGDecodedImageData.h b/Libraries/LibWeb/SVG/SVGDecodedImageData.h index 064641934d..6de1fb3dd2 100644 --- a/Libraries/LibWeb/SVG/SVGDecodedImageData.h +++ b/Libraries/LibWeb/SVG/SVGDecodedImageData.h @@ -47,7 +47,6 @@ public: private: SVGDecodedImageData(GC::Ref, GC::Ref, GC::Ref, GC::Ref); - RefPtr surface(size_t frame_index, Gfx::IntSize) const; RefPtr render_to_surface(Gfx::IntSize) const; Optional record_display_list(Gfx::IntSize, Painting::DisplayListResourceStorage&) const; void prune_cached_display_list_resources() const;