From 860981e63d535cfed566ac831fc9fd130b1b03fb Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 18 Feb 2024 07:25:16 -0600 Subject: send a function to the watchdog repo scanner --- new.go | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'new.go') diff --git a/new.go b/new.go index f6841c3..237f582 100644 --- a/new.go +++ b/new.go @@ -1,8 +1,6 @@ package repolist import ( - "strings" - "go.wit.com/log" ) @@ -13,18 +11,6 @@ func RemoveFirstElement(slice []string) (string, []string) { return slice[0], slice[1:] // Return the slice without the first element } -// returns path, master branch name, devel branch name, user branch name -func splitLine(line string) (string, string, string, string) { - var path, master, devel, user string - parts := strings.Split(line, " ") - path, parts = RemoveFirstElement(parts) - master, parts = RemoveFirstElement(parts) - devel, parts = RemoveFirstElement(parts) - user, parts = RemoveFirstElement(parts) - // path, master, devel, user := strings.Split(line, " ") - return path, master, devel, user -} - func RepoType() { for _, repo := range me.allrepos { switch repo.Status.RepoType() { @@ -41,15 +27,3 @@ func RepoType() { } } - -/* -func myrepolist() []string { - homeDir, _ := os.UserHomeDir() - cfgfile := filepath.Join(homeDir, ".config/autotypist") - content, _ := ioutil.ReadFile(cfgfile) - out := string(content) - out = strings.TrimSpace(out) - lines := strings.Split(out, "\n") - return lines -} -*/ -- cgit v1.2.3