From 672555d3d076c160e76feae0646e159b265f4daf Mon Sep 17 00:00:00 2001 From: Chris Waldon Date: Wed, 21 Oct 2020 21:32:43 -0400 Subject: [PATCH] widget/material: remove unused fill helper Signed-off-by: Chris Waldon --- widget/material/theme.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/widget/material/theme.go b/widget/material/theme.go index 332a4e62..40412ab1 100644 --- a/widget/material/theme.go +++ b/widget/material/theme.go @@ -5,9 +5,6 @@ package material import ( "image/color" - "gioui.org/f32" - "gioui.org/layout" - "gioui.org/op/paint" "gioui.org/text" "gioui.org/unit" "gioui.org/widget" @@ -63,14 +60,3 @@ func rgb(c uint32) color.RGBA { func argb(c uint32) color.RGBA { return color.RGBA{A: uint8(c >> 24), R: uint8(c >> 16), G: uint8(c >> 8), B: uint8(c)} } - -func fill(gtx layout.Context, col color.RGBA) layout.Dimensions { - cs := gtx.Constraints - d := cs.Min - dr := f32.Rectangle{ - Max: f32.Point{X: float32(d.X), Y: float32(d.Y)}, - } - paint.ColorOp{Color: col}.Add(gtx.Ops) - paint.PaintOp{Rect: dr}.Add(gtx.Ops) - return layout.Dimensions{Size: d} -}