From 9e22b94dffe4670fd3e0738beff259d8391b270d Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 8 Feb 2018 21:43:31 +0100 Subject: [style] remove unused code --- config.go | 4 ---- systray.go | 7 +------ 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/config.go b/config.go index 0a769aa..c98d436 100644 --- a/config.go +++ b/config.go @@ -2,7 +2,6 @@ package main import ( "encoding/json" - "log" "os" "path" "time" @@ -42,13 +41,10 @@ func parseConfig() (*systrayConfig, error) { } func (c *systrayConfig) hasDonated() bool { - log.Println("has donated ", c.Donated.Add(oneMonth)) return c.Donated.Add(oneMonth).After(time.Now()) } 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()) } diff --git a/systray.go b/systray.go index 4344748..b160c03 100644 --- a/systray.go +++ b/systray.go @@ -145,15 +145,10 @@ func (bt *bmTray) addGateways() { } systray.AddSeparator() - - go bt.gatewaySelection() -} - -func (bt *bmTray) gatewaySelection() { - } func (bt *bmTray) changeStatus(status string) { + // TODO: ugly hacks with 'go' to hide/show statusStr := status bt.mTurnOn.SetTitle("Turn on") if bt.waitCh != nil { -- cgit v1.2.3