diff --git a/xdg.go b/xdg.go index 4bdffb1..2c3e012 100644 --- a/xdg.go +++ b/xdg.go @@ -1,9 +1,6 @@ package xdg import ( - "os" - "path/filepath" - "github.com/adrg/xdg/internal/pathutil" ) @@ -198,21 +195,3 @@ func SearchCacheFile(relPath string) (string, error) { func SearchRuntimeFile(relPath string) (string, error) { return baseDirs.searchRuntimeFile(relPath) } - -func xdgPath(name string, defaultPaths ...string) string { - dir := pathutil.ExpandHome(os.Getenv(name)) - if dir != "" && filepath.IsAbs(dir) { - return dir - } - - return pathutil.First(defaultPaths) -} - -func xdgPaths(name string, defaultPaths ...string) []string { - dirs := pathutil.Unique(filepath.SplitList(os.Getenv(name))) - if len(dirs) != 0 { - return dirs - } - - return pathutil.Unique(defaultPaths) -}