From dce03955174abe5ad83c01c930e3bf47fe39d8ce Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 30 Dec 2024 01:23:40 +0000 Subject: Revamp --- cap.go | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 cap.go (limited to 'cap.go') diff --git a/cap.go b/cap.go deleted file mode 100644 index 2beb771..0000000 --- a/cap.go +++ /dev/null @@ -1,30 +0,0 @@ -package main - -import ( - "strings" -) - -var Caps = map[string]string{} - -var ( - capls string - capls302 string -) - -// Can't be in init() because Caps will be registered with init in the future -// and init()s are executed by filename alphabetical order -func setupCapls() { - capls = "" - capls302 = "" - for k, v := range Caps { - capls += k - capls302 += k - if v != "" { - capls302 += "=" + v - } - capls += " " - capls302 += " " - } - capls = strings.TrimSuffix(capls, " ") - capls302 = strings.TrimSuffix(capls302, " ") -} -- cgit v1.2.3