text,widget: remove dead code and fields

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2023-11-27 15:45:03 -06:00
parent 20c28ef282
commit 5fcfc40ab8
6 changed files with 1 additions and 23 deletions
-4
View File
@@ -97,10 +97,6 @@ func (l Label) LayoutDetailed(gtx layout.Context, lt *text.Shaper, font font.Fon
return dims, TextInfo{Truncated: it.truncated}
}
func r2p(r clip.Rect) clip.Op {
return clip.Stroke{Path: r.Path(), Width: 1}.Op()
}
// textIterator computes the bounding box of and paints text.
type textIterator struct {
// viewport is the rectangle of document coordinates that the iterator is