mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
io/router: remove unused frect function
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user