summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-05 13:33:27 -0600
committerJeff Carr <[email protected]>2025-03-05 13:33:27 -0600
commit9ab1afbe14edf2377cd3ce87ca81c3da8cae7107 (patch)
tree838702b2a1e5d62da0aad97762eb22f4a7940c0a
parenteea1747f448471d86e0aac0cee5054e7dbc8d6e0 (diff)
code moved to autogenpb
-rw-r--r--machine.test.go14
1 files changed, 2 insertions, 12 deletions
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