From 4ec352727ef664e9bcb014b64190eaaee0ace77a Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 9 Jul 2019 17:05:38 +0200 Subject: [PATCH] ui/layout: remove unused isInf Signed-off-by: Elias Naur --- ui/layout/layout.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ui/layout/layout.go b/ui/layout/layout.go index c436cb63..ee6c1f70 100644 --- a/ui/layout/layout.go +++ b/ui/layout/layout.go @@ -81,7 +81,7 @@ func (in *Insets) Begin(c *ui.Config, ops *ui.Ops, cs Constraints) Constraints { panic("must End before Begin") } in.top = int(math.Round(float64(c.Val(in.Top)))) - in.right= int(math.Round(float64(c.Val(in.Right)))) + in.right = int(math.Round(float64(c.Val(in.Right)))) in.bottom = int(math.Round(float64(c.Val(in.Bottom)))) in.left = int(math.Round(float64(c.Val(in.Left)))) in.begun = true @@ -130,10 +130,6 @@ func EqualInsets(v ui.Value) Insets { return Insets{Top: v, Right: v, Bottom: v, Left: v} } -func isInf(v ui.Value) bool { - return math.IsInf(float64(v.V), 1) -} - type Sized struct { Width, Height ui.Value }