summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-21 11:53:14 -0500
committerJeff Carr <[email protected]>2025-10-21 11:53:14 -0500
commit9989aed2606955e4fafb88043f0ac550c320880a (patch)
tree04d575ff6c7887a083946cb511aa284bbcada633
parent25a911f0f764e35a800eb9423acef964f4c83028 (diff)
oops
-rw-r--r--changed.go29
-rw-r--r--common.go1
2 files changed, 0 insertions, 30 deletions
diff --git a/changed.go b/changed.go
index 67b6ffb..3db4a82 100644
--- a/changed.go
+++ b/changed.go
@@ -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
-}
diff --git a/common.go b/common.go
index d9ef0ce..368d39c 100644
--- a/common.go
+++ b/common.go
@@ -4,7 +4,6 @@ import (
"os"
"runtime"
"strings"
- "sync"
)
// todo: move these somewhere else