rm code now made by autogenpb
This commit is contained in:
parent
c572bb2f04
commit
f58f7df9ac
52
repo.test.go
52
repo.test.go
|
@ -10,57 +10,14 @@
|
||||||
|
|
||||||
package gitpb
|
package gitpb
|
||||||
|
|
||||||
import (
|
|
||||||
"go.wit.com/lib/protobuf/guipb"
|
|
||||||
)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
func (mt *ReposTable) Delete() {
|
|
||||||
if mt == nil {
|
|
||||||
log.Info("mt == nil table already deleted")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
log.Info("implement table Delete here")
|
|
||||||
mt.parent.DeleteTable(mt.pb)
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
func (mt *ReposTable) UpdateTable(pb *Repos) {
|
func (mt *ReposTable) UpdateTable(pb *Repos) {
|
||||||
// mt.parent.UpdateTable(pb)
|
// mt.parent.UpdateTable(pb)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
func (mt *ReposTable) lookupByWidgetId(id int) *Repo {
|
|
||||||
log.Info("no shit. got to lookupWidgdetId() id =", id, "on mt", mt.GetUuid())
|
|
||||||
|
|
||||||
for _, r := range mt.pb.StringRows {
|
|
||||||
for _, w := range r.Widgets {
|
|
||||||
if int(w.Id) == id {
|
|
||||||
log.Info("lookupByWidgetId() found id", id, w.Location)
|
|
||||||
return mt.x.Repos[w.Location.Y-1]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, r := range mt.pb.ButtonRows {
|
|
||||||
for _, w := range r.Widgets {
|
|
||||||
if int(w.Id) == id {
|
|
||||||
log.Info("lookupByWidgetId() found id", id, w.Location)
|
|
||||||
if w.Location == nil {
|
|
||||||
log.Info("lookupByWidgetId() location was nil", id, w.Location)
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return mt.x.Repos[w.Location.Y-1]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
func (mt *ReposTable) reposCustom(w *guipb.Widget) {
|
func (mt *ReposTable) reposCustom(w *guipb.Widget) {
|
||||||
// repo := mt.lookupByWidgetId(id)
|
|
||||||
repo := mt.x.Repos[w.Location.Y-1]
|
repo := mt.x.Repos[w.Location.Y-1]
|
||||||
mt.CustomFunc(repo)
|
mt.CustomFunc(repo)
|
||||||
}
|
}
|
||||||
|
@ -70,12 +27,7 @@ func (mt *ReposTable) Custom(f func(*Repo)) {
|
||||||
mt.CustomFunc = f
|
mt.CustomFunc = f
|
||||||
}
|
}
|
||||||
|
|
||||||
//func (mt *ReposTable) CustomRegister(f func(int)) {
|
|
||||||
// mt.pb.RegisterCustom(mt.reposCustom)
|
|
||||||
//}
|
|
||||||
|
|
||||||
func (mt *ReposTable) GetUuid() string {
|
func (mt *ReposTable) GetUuid() string {
|
||||||
return mt.pb.Uuid
|
return mt.pb.Uuid
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
// END GUI
|
|
||||||
|
|
Loading…
Reference in New Issue