aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/system/retrieve.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/system/retrieve.go')
-rw-r--r--internal/system/retrieve.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/internal/system/retrieve.go b/internal/system/retrieve.go
deleted file mode 100644
index 06798423..00000000
--- a/internal/system/retrieve.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package system
-
-import (
- "fmt"
- "os"
- "path"
- "strconv"
-)
-
-func Retrieve() {
- if V != nil {
- panic("system info retrieved twice")
- }
-
- v := &Values{Share: path.Join(os.TempDir(), "fortify."+strconv.Itoa(os.Geteuid()))}
-
- if r, ok := os.LookupEnv(xdgRuntimeDir); !ok {
- fmt.Println("Env variable", xdgRuntimeDir, "unset")
-
- // too early for fatal
- os.Exit(1)
- } else {
- v.Runtime = r
- v.RunDir = path.Join(v.Runtime, "fortify")
- }
-
- V = v
-}