From aa14056350d65323ac4bad2fe32e8ff6a7da46b6 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 25 Apr 2022 09:12:42 +0200 Subject: [PATCH] io/router: remove unused frect function Signed-off-by: Elias Naur --- io/router/pointer.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/io/router/pointer.go b/io/router/pointer.go index 71e0a48c..60a3be84 100644 --- a/io/router/pointer.go +++ b/io/router/pointer.go @@ -189,13 +189,6 @@ func (c *pointerCollector) pushArea(kind areaKind, bounds image.Rectangle) { }) } -// 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 a point to a f32.Point. func fpt(p image.Point) f32.Point { return f32.Point{