Skip to content
Snippets Groups Projects
Verified Commit 9e22b94d authored by meskio's avatar meskio :tent:
Browse files

[style] remove unused code

parent a846cb2a
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,6 @@ package main ...@@ -2,7 +2,6 @@ package main
import ( import (
"encoding/json" "encoding/json"
"log"
"os" "os"
"path" "path"
"time" "time"
...@@ -42,13 +41,10 @@ func parseConfig() (*systrayConfig, error) { ...@@ -42,13 +41,10 @@ func parseConfig() (*systrayConfig, error) {
} }
func (c *systrayConfig) hasDonated() bool { func (c *systrayConfig) hasDonated() bool {
log.Println("has donated ", c.Donated.Add(oneMonth))
return c.Donated.Add(oneMonth).After(time.Now()) return c.Donated.Add(oneMonth).After(time.Now())
} }
func (c *systrayConfig) needsNotification() bool { func (c *systrayConfig) needsNotification() bool {
log.Println("needs ", c.LastNotification.Add(oneDay))
log.Println(!c.hasDonated() && c.LastNotification.Add(oneDay).Before(time.Now()))
return !c.hasDonated() && c.LastNotification.Add(oneDay).Before(time.Now()) return !c.hasDonated() && c.LastNotification.Add(oneDay).Before(time.Now())
} }
......
...@@ -145,15 +145,10 @@ func (bt *bmTray) addGateways() { ...@@ -145,15 +145,10 @@ func (bt *bmTray) addGateways() {
} }
systray.AddSeparator() systray.AddSeparator()
go bt.gatewaySelection()
}
func (bt *bmTray) gatewaySelection() {
} }
func (bt *bmTray) changeStatus(status string) { func (bt *bmTray) changeStatus(status string) {
// TODO: ugly hacks with 'go' to hide/show
statusStr := status statusStr := status
bt.mTurnOn.SetTitle("Turn on") bt.mTurnOn.SetTitle("Turn on")
if bt.waitCh != nil { if bt.waitCh != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment