From 3389d46410c2da8af5f268bf456b9cdb5d0f5b54 Mon Sep 17 00:00:00 2001 From: Kevin Schoon Date: Sun, 28 Jan 2018 00:26:25 +0800 Subject: [PATCH] remove commented code --- task.go | 52 ---------------------------------------------------- 1 file changed, 52 deletions(-) diff --git a/task.go b/task.go index 55e92e7..d53fb71 100644 --- a/task.go +++ b/task.go @@ -115,55 +115,3 @@ func (t *TaskRunner) Toggle() { func (t *TaskRunner) Pause() { t.pause <- true } - -/* - -func (t *TaskRunner) Run() error { - for t.count < t.task.NPomodoros { - // ASCII spinner - wheel := &Wheel{} - // This pomodoro - pomodoro := &Pomodoro{} - //prompt("press enter to begin") - // Emit a desktop notification - // that the task is beginning. - t.notifier.Begin(t.count, *t.task) - // Record task as started - pomodoro.Start = time.Now() - // Reset the timer - t.timer.Reset(t.task.Duration) - // Wait for either a tick to update - // the UI for the timer to complete - loop: - select { - case <-t.ticker.C: - t.msgCh <- Message{ - Start: pomodoro.Start, - Duration: t.task.Duration, - Pomodoros: t.task.NPomodoros, - Wheel: wheel, - CurrentPomodoro: t.count, - State: RUNNING, - } - goto loop - case <-t.timer.C: - // Send a notification for the - // user to take a break. We record - // how long it actually takes for - // them to initiate the break. - //t.notifier.Break(*t.task) - //prompt("press enter to take a break") - // Record the task as complete - pomodoro.End = time.Now() - // Record the session in the db - err := t.store.CreatePomodoro(t.task.ID, *pomodoro) - if err != nil { - return err - } - // Increment the count of completed pomodoros - t.count++ - } - } - return nil -} -*/