From 73607833e5b492d22cf0fa5b9fb8b50cdc3b5e50 Mon Sep 17 00:00:00 2001 From: potassium Date: Tue, 3 Nov 2026 10:54:15 +0300 Subject: [PATCH] cleaningup --- util/fb/filepath.go | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 util/fb/filepath.go diff --git a/util/fb/filepath.go b/util/fb/filepath.go deleted file mode 100644 index 58314cf..0000000 --- a/util/fb/filepath.go +++ /dev/null @@ -1,36 +0,0 @@ -//go:build ignore - -package main - -import ( - "bufio" - "fmt" - "io" - "os" - "path/filepath" -) - -func main() { - matches, err := filepath.Glob("/sys/class/drm/*/modes") - if err != nil { - panic(err) - } - fmt.Println(matches) - for _, match := range matches { - f, err := os.Open(match) - if err != nil { - panic(err) - } - r := bufio.NewReader(f) - s, err := r.ReadString('\n') - if err != nil { - switch err { - case io.EOF: - continue - default: - panic(err) - } - } - fmt.Print(s) - } -}