File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 1
1
package xdg
2
2
3
3
import (
4
- "os"
5
- "path/filepath"
6
-
7
4
"github.com/adrg/xdg/internal/pathutil"
8
5
)
9
6
@@ -198,21 +195,3 @@ func SearchCacheFile(relPath string) (string, error) {
198
195
func SearchRuntimeFile (relPath string ) (string , error ) {
199
196
return baseDirs .searchRuntimeFile (relPath )
200
197
}
201
-
202
- func xdgPath (name string , defaultPaths ... string ) string {
203
- dir := pathutil .ExpandHome (os .Getenv (name ))
204
- if dir != "" && filepath .IsAbs (dir ) {
205
- return dir
206
- }
207
-
208
- return pathutil .First (defaultPaths )
209
- }
210
-
211
- func xdgPaths (name string , defaultPaths ... string ) []string {
212
- dirs := pathutil .Unique (filepath .SplitList (os .Getenv (name )))
213
- if len (dirs ) != 0 {
214
- return dirs
215
- }
216
-
217
- return pathutil .Unique (defaultPaths )
218
- }
You can’t perform that action at this time.
0 commit comments