summaryrefslogtreecommitdiff
path: root/addRepo.go
diff options
context:
space:
mode:
Diffstat (limited to 'addRepo.go')
-rw-r--r--addRepo.go12
1 files changed, 3 insertions, 9 deletions
diff --git a/addRepo.go b/addRepo.go
index 800076c..4a954ad 100644
--- a/addRepo.go
+++ b/addRepo.go
@@ -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
}
+*/