diff --git a/Libraries/LibGfx/PaintStyle.h b/Libraries/LibGfx/PaintStyle.h index 9d227d2ae0a..d9907727ffc 100644 --- a/Libraries/LibGfx/PaintStyle.h +++ b/Libraries/LibGfx/PaintStyle.h @@ -113,33 +113,6 @@ private: Color m_fallback; }; -class OffsetPaintStyle : public Gfx::PaintStyle { -public: - static ErrorOr> create(RefPtr other, Gfx::AffineTransform transform) - { - return adopt_nonnull_ref_or_enomem(new (nothrow) OffsetPaintStyle(move(other), transform)); - } - - virtual void paint(Gfx::IntRect physical_bounding_box, PaintFunction paint) const override - { - m_other->paint(m_transform.map(physical_bounding_box), [=, this, paint = move(paint)](SamplerFunction sampler) { - paint([=, this, sampler = move(sampler)](Gfx::IntPoint point) { - return sampler(m_transform.map(point)); - }); - }); - } - -private: - OffsetPaintStyle(RefPtr other, Gfx::AffineTransform transform) - : m_other(move(other)) - , m_transform(transform) - { - } - - RefPtr m_other; - Gfx::AffineTransform m_transform; -}; - class GradientPaintStyle : public PaintStyle { public: ErrorOr add_color_stop(float position, Color color, Optional transition_hint = {})