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:
@@ -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()
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user