diff options
Diffstat (limited to 'lib/ui/borders.go')
-rw-r--r-- | lib/ui/borders.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/ui/borders.go b/lib/ui/borders.go index 92e29b06..81d5db61 100644 --- a/lib/ui/borders.go +++ b/lib/ui/borders.go @@ -14,7 +14,6 @@ const ( ) type Bordered struct { - Invalidatable borders uint content Drawable uiConfig *config.UIConfig @@ -28,20 +27,15 @@ func NewBordered( content: content, uiConfig: uiConfig, } - content.OnInvalidate(b.contentInvalidated) return b } -func (bordered *Bordered) contentInvalidated(d Drawable) { - bordered.Invalidate() -} - func (bordered *Bordered) Children() []Drawable { return []Drawable{bordered.content} } func (bordered *Bordered) Invalidate() { - bordered.DoInvalidate(bordered) + Invalidate() } func (bordered *Bordered) Draw(ctx *Context) { |