summaryrefslogtreecommitdiff
path: root/windowPatchsets.go
diff options
context:
space:
mode:
Diffstat (limited to 'windowPatchsets.go')
-rw-r--r--windowPatchsets.go40
1 files changed, 0 insertions, 40 deletions
diff --git a/windowPatchsets.go b/windowPatchsets.go
index 29a2929..3756ec2 100644
--- a/windowPatchsets.go
+++ b/windowPatchsets.go
@@ -36,39 +36,6 @@ func (w *stdPatchsetTableWin) Toggle() {
w.win.Toggle()
}
-/*
-func loadUpstreamPatchsets() {
- psets, err := me.forge.GetPatchesets()
- if err != nil {
- log.Info("Get Patchsets failed", err)
- return
- }
-
- var foundnew bool
- all := psets.All()
- for all.Scan() {
- pset := all.Next()
- found := me.psets.FindByUuid(pset.Uuid)
- if found == nil {
- log.Info("new patchset", pset.Name, pset.Uuid)
- pset.State = "new"
- foundnew = true
- } else {
- log.Info("patchset already on disk", found.Name, found.State)
- pset.State = found.State
- if pset.State == "" {
- pset.State = "new"
- }
- }
- }
- if foundnew {
- log.Info("should save these here")
- me.psets = psets
- savePatchsets()
- }
-}
-*/
-
func makePatchsetsWin() *stdPatchsetTableWin {
dwin := new(stdPatchsetTableWin)
dwin.win = gadgets.NewGenericWindow("forge current patchsets", "patchset options")
@@ -86,13 +53,6 @@ func makePatchsetsWin() *stdPatchsetTableWin {
dwin.doPatchsetsTable(me.psets)
})
- /*
- grid.NewButton("upstream", func() {
- loadUpstreamPatchsets()
- dwin.doPatchsetsTable(me.psets)
- })
- */
-
grid.NewButton("save", func() {
if me.psets == nil {
log.Info("No Patchsets loaded")