mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
internal/ops: remove Data, Version, Refs methods from Ops
They're only used internally. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -754,22 +754,3 @@ func BenchmarkRouterAdd(b *testing.B) {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
var benchAreaOp areaOp
|
||||
|
||||
func BenchmarkAreaOp_Decode(b *testing.B) {
|
||||
ops := new(op.Ops)
|
||||
pointer.Rect(image.Rectangle{Max: image.Pt(100, 100)}).Push(ops).Pop()
|
||||
for i := 0; i < b.N; i++ {
|
||||
benchAreaOp.Decode(ops.Internal.Data())
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkAreaOp_Hit(b *testing.B) {
|
||||
ops := new(op.Ops)
|
||||
pointer.Rect(image.Rectangle{Max: image.Pt(100, 100)}).Push(ops).Pop()
|
||||
benchAreaOp.Decode(ops.Internal.Data())
|
||||
for i := 0; i < b.N; i++ {
|
||||
benchAreaOp.Hit(f32.Pt(50, 50))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user