summaryrefslogtreecommitdiff
path: root/psutil.go
diff options
context:
space:
mode:
Diffstat (limited to 'psutil.go')
-rw-r--r--psutil.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/psutil.go b/psutil.go
index 957e8dc..f7dbe4a 100644
--- a/psutil.go
+++ b/psutil.go
@@ -1,12 +1,8 @@
package main
import (
- "io/fs"
- "io/ioutil"
-
"github.com/faiface/pixel"
"github.com/faiface/pixel/pixelgl"
- "go.wit.com/log"
)
// Pixel Shader utility functions
@@ -44,20 +40,3 @@ func CenterWindow(win *pixelgl.Window) {
),
)
}
-
-// LoadFileToString loads the contents of a file into a string
-func LoadFileToString(filename string) (string, error) {
- embedf, err1 := fs.ReadFile(glFile, filename)
- if err1 == nil {
- log.Println("found embedded file:", filename)
- return string(embedf), nil
- } else {
- log.Println("did not find embedded file:", filename)
- log.Println("err", err1)
- }
- b, err := ioutil.ReadFile("/tmp/" + filename)
- if err != nil {
- return "", err
- }
- return string(b), nil
-}