diff --git a/cmd/hydroxide/hydroxide.go b/cmd/hydroxide/hydroxide.go index 6728dc2..8a1280e 100644 --- a/cmd/hydroxide/hydroxide.go +++ b/cmd/hydroxide/hydroxide.go @@ -8,7 +8,6 @@ import ( "log" "net/http" "os" - "time" imapmove "github.com/emersion/go-imap-move" imapspacialuse "github.com/emersion/go-imap-specialuse" @@ -35,27 +34,6 @@ func newClient() *protonmail.Client { } } -func receiveEvents(c *protonmail.Client, ch chan<- *protonmail.Event) { - t := time.NewTicker(time.Minute) - defer t.Stop() - - var last string - for range t.C { - event, err := c.GetEvent(last) - if err != nil { - log.Println("Cannot receive event:", err) - continue - } - - if event.ID == last { - continue - } - last = event.ID - - ch <- event - } -} - func main() { flag.Parse()