summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-02-08 21:43:31 +0100
committerRuben Pollan <meskio@sindominio.net>2018-02-08 21:43:31 +0100
commit9e22b94dffe4670fd3e0738beff259d8391b270d (patch)
tree51ed2bfb5b30f55d2b386db896f7d2c96c21ed7a /config.go
parenta846cb2a424fd17d43e3edf885cca7d79820fa9f (diff)
[style] remove unused code
Diffstat (limited to 'config.go')
-rw-r--r--config.go4
1 files changed, 0 insertions, 4 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())
}