mirror of
https://github.com/go-task/task.git
synced 2025-01-12 04:34:11 +02:00
Delete not used function
This commit is contained in:
parent
8c5e7e89cd
commit
40b96ced43
@ -4,8 +4,6 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
|
||||
"runtime"
|
||||
|
||||
"github.com/BurntSushi/toml"
|
||||
@ -45,14 +43,3 @@ func readTaskfileData(path string) (tasks map[string]*Task, err error) {
|
||||
}
|
||||
return nil, taskFileNotFound{path}
|
||||
}
|
||||
|
||||
func exists(path string) (bool, error) {
|
||||
_, err := os.Stat(path)
|
||||
if err == nil {
|
||||
return true, nil
|
||||
}
|
||||
if os.IsNotExist(err) {
|
||||
return false, nil
|
||||
}
|
||||
return true, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user