diff options
Diffstat (limited to 'addRepo.go')
| -rw-r--r-- | addRepo.go | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -1,13 +1,6 @@ package main -import ( - "strings" - "time" - - "go.wit.com/lib/gadgets" - "go.wit.com/log" -) - +/* func RemoveFirstElement(slice []string) (string, []string) { if len(slice) == 0 { return "", slice // Return the original slice if it's empty @@ -17,7 +10,7 @@ func RemoveFirstElement(slice []string) (string, []string) { // homeDir, _ := os.UserHomeDir() -func (c *controlBox) addRepo() { +func (c *controlBox) addRepoOld() { path := strings.Trim(me.goPath, "/") // trim any extranous '/' chars put in the config file by the user if path == "" { log.Warn("addRepo() got empty path", path) @@ -99,3 +92,4 @@ func (c *controlBox) addRepo() { c.tagDate.SetText(tagDate) return } +*/ |
