1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Remove RefreshedAt from TextWidget

This attribute is used for absolutely nothing. It doesn't need to exist.
This commit is contained in:
Chris Cummer
2018-10-11 17:12:29 -04:00
parent 76f96ecb00
commit a48d15079a
41 changed files with 12 additions and 69 deletions

View File

@@ -11,14 +11,13 @@ import (
//BarGraph lets make graphs
type BarGraph struct {
enabled bool
focusable bool
starChar string
maxStars int
Name string
RefreshedAt time.Time
RefreshInt int
View *tview.TextView
enabled bool
focusable bool
starChar string
maxStars int
Name string
RefreshInt int
View *tview.TextView
Position
@@ -90,10 +89,6 @@ func (widget *BarGraph) TextView() *tview.TextView {
/* -------------------- Unexported Functions -------------------- */
func (widget *BarGraph) UpdateRefreshedAt() {
widget.RefreshedAt = time.Now()
}
func (widget *BarGraph) addView() {
view := tview.NewTextView()

View File

@@ -2,7 +2,6 @@ package wtf
import (
"fmt"
"time"
"github.com/olebedev/config"
"github.com/rivo/tview"
@@ -15,10 +14,9 @@ type TextWidget struct {
focusable bool
focusChar string
Name string
RefreshedAt time.Time
RefreshInt int
View *tview.TextView
Name string
RefreshInt int
View *tview.TextView
Position
}
@@ -130,7 +128,3 @@ func (widget *TextWidget) addView(app *tview.Application, configKey string) {
widget.View = view
}
func (widget *TextWidget) UpdateRefreshedAt() {
widget.RefreshedAt = time.Now()
}