diff options
Diffstat (limited to 'tableWindow.go')
| -rw-r--r-- | tableWindow.go | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/tableWindow.go b/tableWindow.go index 5d64bac..089a7dc 100644 --- a/tableWindow.go +++ b/tableWindow.go @@ -98,41 +98,3 @@ func makeTableWindow() *tableWindow { // pw.addPatchset(grid, pset) return pw } - -/* -func (r *tableWindow) addPatchset(grid *gui.Node, pset *forgepb.Patchset) { - - all := pset.Patches.SortByFilename() - for all.Scan() { - p := all.Next() - // for repo, patches := range repomap { - rn := p.RepoNamespace - repo := me.forge.FindByGoPath(rn) - if repo == nil { - log.Info("Could not figure out repo path", rn) - rn += " bad repo" - } - log.Info("Adding patches for", rn) - grid.NewLabel(rn) - - // hash := repohash[repo] - grid.NewLabel(p.StartHash) - grid.NewLabel(p.Filename) - - if repo == nil { - continue - } - grid.NewButton("apply", func() { - filename, _ := savePatch(p) - if err := applyPatch(repo, filename); err != nil { - log.Info("warn user of git am error", err) - } - }) - grid.NewCheckbox("").SetChecked(true) - grid.NewCheckbox("").SetChecked(true) - grid.NewButton("save patch to /tmp", func() { - }) - grid.NextRow() - } -} -*/ |
