From 576580772e302aacbf627f1d2154c28e332d9008 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 31 Jan 2024 02:29:16 -0600 Subject: [PATCH] less code Signed-off-by: Jeff Carr --- repolist.go | 21 ++------------------- scan.go | 22 ---------------------- 2 files changed, 2 insertions(+), 41 deletions(-) diff --git a/repolist.go b/repolist.go index c299e49..3ee6ebe 100644 --- a/repolist.go +++ b/repolist.go @@ -52,10 +52,6 @@ func (r *repo) Hide() { r.lastTag.Hide() r.vLabel.Hide() -// r.masterVersion.Hide() -// r.develVersion.Hide() -// r.userVersion.Hide() - r.dirtyLabel.Hide() r.goSumStatus.Hide() r.statusButton.Hide() @@ -67,10 +63,6 @@ func (r *repo) Show() { r.lastTag.Show() r.vLabel.Show() -// r.masterVersion.Show() -// r.develVersion.Show() -// r.userVersion.Show() - r.dirtyLabel.Show() r.goSumStatus.Show() r.statusButton.Show() @@ -95,16 +87,11 @@ func repoworld() { reposgrid.NewLabel("") // path goes here reposgrid.NewLabel("last tag").SetProgName("last tag") - -// reposgrid.NewLabel("master version") -// reposgrid.NewLabel("devel version") -// reposgrid.NewLabel("user version") + reposgrid.NewLabel("Current Version").SetProgName("Current Version") reposgrid.NewLabel("Status") reposgrid.NewLabel("go.sum") - reposgrid.NewLabel("Current Version").SetProgName("Current Version") - reposgrid.NewLabel("Show()") repos := myrepolist() @@ -160,15 +147,11 @@ func addRepo(grid *gui.Node, path string, master string, devel string, user stri newRepo.pLabel = grid.NewLabel(path).SetProgName("path") newRepo.lastTag = grid.NewLabel("").SetProgName("lastTag") - -// newRepo.masterVersion = grid.NewLabel("").SetProgName("masterVersion") -// newRepo.develVersion = grid.NewLabel("").SetProgName("develVersion") -// newRepo.userVersion = grid.NewLabel("").SetProgName("userVersion") + newRepo.vLabel = grid.NewLabel("").SetProgName("current") newRepo.dirtyLabel = grid.NewLabel("") newRepo.goSumStatus = grid.NewLabel("?") - newRepo.vLabel = grid.NewLabel("").SetProgName("current") newRepo.statusButton = grid.NewButton("Configure", func() { if newRepo.status == nil { diff --git a/scan.go b/scan.go index 9fd4876..b0233be 100644 --- a/scan.go +++ b/scan.go @@ -22,28 +22,6 @@ func (r *repo) newScan() bool { log.Warn("repo does not exist", r.getPath()) return false } - /* - mname := r.status.GetMasterBranchName() - mver := r.status.GetMasterVersion() - if mname != "guimaster" { - mver = mver + " (" + mname + ")" - } - r.masterVersion.SetLabel(mver) - - dname := r.status.GetDevelBranchName() - dver := r.status.GetDevelVersion() - if dname != "devel" { - dver = dver + " (" + dname + ")" - } - r.develVersion.SetLabel(dver) - - uname := r.status.GetUserBranchName() - uver := r.status.GetUserVersion() - if uname != "jcarr" { - uver = uver + " (" + uname + ")" - } - r.userVersion.SetLabel(uver) - */ cbname := r.status.GetCurrentBranchName() cbversion := r.status.GetCurrentBranchVersion()