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

Remove the unnecessary mutex from gcal

This commit is contained in:
Chris Cummer 2019-05-07 21:58:12 -07:00
parent ac87145749
commit d77415783a
2 changed files with 0 additions and 5 deletions

View File

@ -29,9 +29,6 @@ func (widget *Widget) display() {
return
}
widget.mutex.Lock()
defer widget.mutex.Unlock()
widget.View.SetTitle(widget.ContextualTitle(widget.settings.common.Title))
widget.View.SetText(widget.contentFrom(widget.calEvents))
}

View File

@ -1,7 +1,6 @@
package gcal
import (
"sync"
"time"
"github.com/rivo/tview"
@ -14,7 +13,6 @@ type Widget struct {
app *tview.Application
calEvents []*CalEvent
ch chan struct{}
mutex sync.Mutex
settings *Settings
}