summaryrefslogtreecommitdiff
path: root/new.go
diff options
context:
space:
mode:
Diffstat (limited to 'new.go')
-rw-r--r--new.go26
1 files changed, 0 insertions, 26 deletions
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
-}
-*/