remove dead code
This commit is contained in:
parent
7f0df49878
commit
ab24f88a59
4
types.go
4
types.go
|
@ -34,10 +34,6 @@ const (
|
||||||
PAUSED
|
PAUSED
|
||||||
)
|
)
|
||||||
|
|
||||||
// RefreshInterval is the frequency at which
|
|
||||||
// the display is updated.
|
|
||||||
const RefreshInterval = 800 * time.Millisecond
|
|
||||||
|
|
||||||
// Wheel keeps track of an ASCII spinner
|
// Wheel keeps track of an ASCII spinner
|
||||||
type Wheel int
|
type Wheel int
|
||||||
|
|
||||||
|
|
7
util.go
7
util.go
|
@ -1,7 +1,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/fatih/color"
|
"github.com/fatih/color"
|
||||||
"os"
|
"os"
|
||||||
|
@ -22,12 +21,6 @@ func defaultConfigPath() string {
|
||||||
return u.HomeDir + "/.pomo"
|
return u.HomeDir + "/.pomo"
|
||||||
}
|
}
|
||||||
|
|
||||||
func prompt(text string) {
|
|
||||||
reader := bufio.NewReader(os.Stdin)
|
|
||||||
fmt.Println(text)
|
|
||||||
reader.ReadString('\n')
|
|
||||||
}
|
|
||||||
|
|
||||||
func summerizeTasks(config *Config, tasks []*Task) {
|
func summerizeTasks(config *Config, tasks []*Task) {
|
||||||
for _, task := range tasks {
|
for _, task := range tasks {
|
||||||
fmt.Printf("%d: [%s] ", task.ID, task.Duration.Truncate(time.Second))
|
fmt.Printf("%d: [%s] ", task.ID, task.Duration.Truncate(time.Second))
|
||||||
|
|
Loading…
Reference in New Issue