io/router: remove unused frect function

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2022-04-25 09:12:42 +02:00
parent 4e6a9c0909
commit aa14056350
-7
View File
@@ -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{