From 8630fee623aab03c324da851b134c7d58265c0ed Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 23 Apr 2022 16:18:32 +0200 Subject: [PATCH] io/pointer: remove unused functions Signed-off-by: Elias Naur --- io/pointer/pointer.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/io/pointer/pointer.go b/io/pointer/pointer.go index 60e36b4d..aa037284 100644 --- a/io/pointer/pointer.go +++ b/io/pointer/pointer.go @@ -215,20 +215,6 @@ const ( ButtonTertiary ) -// frect converts a rectangle to a f32.Rectangle. -func frect(r image.Rectangle) f32.Rectangle { - return f32.Rectangle{ - Min: fpt(r.Min), Max: fpt(r.Max), - } -} - -// fpt converts an point to a f32.Point. -func fpt(p image.Point) f32.Point { - return f32.Point{ - X: float32(p.X), Y: float32(p.Y), - } -} - // Push the current pass mode to the pass stack and set the pass mode. func (p PassOp) Push(o *op.Ops) PassStack { id, mid := ops.PushOp(&o.Internal, ops.PassStack)