op/clip: remove unused parameter from Rect.Op

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-11-03 17:24:26 +01:00
parent 88b3c84ef6
commit 3107c95757
+2 -2
View File
@@ -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)
}