From c8bcb9e428703e3f2ee99088612852db1fafc80b Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Fri, 3 May 2024 12:27:38 -0400 Subject: [PATCH] Remove NewApplicationIcon constructor for Icon --- icon.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/icon.go b/icon.go index 5a5d025..277d44f 100644 --- a/icon.go +++ b/icon.go @@ -31,16 +31,6 @@ func NewMimeIcon (mime data.Mime, size theme.IconSize) *Icon { return this } -// NewApplicationIcon creates a new icon from an application description. -func NewApplicationIcon (id theme.ApplicationIcon, size theme.IconSize) *Icon { - this := &Icon { - Box: tomo.NewBox(), - } - theme.Apply(this, theme.R("objects", "Icon", size.String())) - this.SetTexture(id.Texture(size)) - return this -} - func (this *Icon) SetTexture (texture canvas.Texture) { this.Box.SetTexture(texture) if texture == nil {