mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
op/clip: remove unused parameter from Rect.Op
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user