From 3107c957575facb59482793076303ff8f74ed223 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 3 Nov 2020 17:24:26 +0100 Subject: [PATCH] op/clip: remove unused parameter from Rect.Op Signed-off-by: Elias Naur --- op/clip/clip.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/op/clip/clip.go b/op/clip/clip.go index d85ea630..7b3f14dc 100644 --- a/op/clip/clip.go +++ b/op/clip/clip.go @@ -325,11 +325,11 @@ func (p *Path) End() Op { type Rect image.Rectangle // Op returns the op for the rectangle. -func (r Rect) Op(ops *op.Ops) Op { +func (r Rect) Op() Op { return Op{bounds: image.Rectangle(r)} } // Add the clip operation. func (r Rect) Add(ops *op.Ops) { - r.Op(ops).Add(ops) + r.Op().Add(ops) }