From ec661807da8b201cd51e544aee59e8de21aeb0df Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 11 Sep 2025 15:23:17 -0500 Subject: switch over to using gitpb.Repo directly --- addRepo.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'addRepo.go') 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 } +*/ -- cgit v1.2.3