diff options
| -rw-r--r-- | changed.go | 29 | ||||
| -rw-r--r-- | common.go | 1 |
2 files changed, 0 insertions, 30 deletions
@@ -1,9 +1,6 @@ package config import ( - "os" - "runtime" - "strings" "sync" ) @@ -29,29 +26,3 @@ func SetChanged(name string, b bool) { func HasChanged(name string) bool { return saveMap[name] } - -// a simple function name shortcut -func Exists(filename string) bool { - _, err := os.Stat(Path(filename)) - if os.IsNotExist(err) { - return false - } - return true -} - -// simple function name shortcut -func IsDir(dirname string) bool { - info, err := os.Stat(Path(dirname)) - if os.IsNotExist(err) { - return false - } - return info.IsDir() -} - -// notsure if this is a thing anymore. don't care much either -func Path(filename string) string { - if runtime.GOOS == "windows" { - filename = strings.Replace(filename, "/", "\\", -1) - } - return filename -} @@ -4,7 +4,6 @@ import ( "os" "runtime" "strings" - "sync" ) // todo: move these somewhere else |
