From 9ab1afbe14edf2377cd3ce87ca81c3da8cae7107 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 5 Mar 2025 13:33:27 -0600 Subject: code moved to autogenpb --- machine.test.go | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'machine.test.go') diff --git a/machine.test.go b/machine.test.go index 52f7b56..960ff83 100644 --- a/machine.test.go +++ b/machine.test.go @@ -1,9 +1,6 @@ package zoopb import ( - "fmt" - - "go.wit.com/lib/protobuf/guipb" "go.wit.com/log" ) @@ -32,21 +29,13 @@ func (mt *MachinesTable) GetUuid() string { return mt.pb.Uuid } -func (t *MachinesTable) AddButtonFunc(title string, f func(*Machine) string) { - t.pb.Order = append(t.pb.Order, title) - - sf := new(machineButtonFunc) - sf.title = title - sf.f = f - t.buttonFuncs = append(t.buttonFuncs, sf) -} - type machineButtonFunc struct { title string f func(*Machine) string Custom func(*Machine) } +/* func (mt *MachinesTable) doButtonFunc(name string) bool { for _, sf := range mt.buttonFuncs { if sf.title != name { @@ -68,6 +57,7 @@ func (mt *MachinesTable) doButtonFunc(name string) bool { } return false } +*/ func (it *MachinesIterator) Cur() int { return it.index -- cgit v1.2.3