summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-26 14:19:03 -0500
committerJeff Carr <[email protected]>2025-09-26 14:19:03 -0500
commit39227ec9aed3595fab60cdd3678eaa7536121163 (patch)
treed8fbdc5352416cfb365667c7eb0c65a65771945e
parentdfab441172ed85355389eb02b84f7629bb15a72c (diff)
remove Orderv0.5.13
-rw-r--r--generateGui.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/generateGui.go b/generateGui.go
index 42cbdb9..4dd65d0 100644
--- a/generateGui.go
+++ b/generateGui.go
@@ -136,8 +136,6 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) {
fmt.Fprintln(w, "")
fmt.Fprintln(w, "// force the application to choose the type of data. this allows the GUI plugin to be smarter")
fmt.Fprintln(w, "func (t *"+FRUITS+"Table) AddStringFunc(title string, f func(*"+FRUIT+") string) *"+FRUIT+"AnyFunc {")
- fmt.Fprintln(w, " t.pb.Order = append(t.pb.Order, title)")
- fmt.Fprintln(w, "")
fmt.Fprintln(w, " sf := new("+FRUIT+"AnyFunc)")
fmt.Fprintln(w, " sf.f = func(x *"+FRUIT+") any {")
fmt.Fprintln(w, " return f(x)")
@@ -154,8 +152,6 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) {
fmt.Fprintln(w, "")
fmt.Fprintln(w, "// force the application to choose the type of data. this allows the GUI plugin to be smarter")
fmt.Fprintln(w, "func (t *"+FRUITS+"Table) AddButtonFunc(title string, f func(*"+FRUIT+") string) *"+FRUIT+"AnyFunc {")
- fmt.Fprintln(w, " t.pb.Order = append(t.pb.Order, title)")
- fmt.Fprintln(w, "")
fmt.Fprintln(w, " sf := new("+FRUIT+"AnyFunc)")
fmt.Fprintln(w, " sf.f = func(x *"+FRUIT+") any {")
fmt.Fprintln(w, " return f(x)")
@@ -173,8 +169,6 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) {
fmt.Fprintln(w, "")
fmt.Fprintln(w, "// force the application to choose the type of data. this allows the GUI plugin to be smarter")
fmt.Fprintln(w, "func (t *"+FRUITS+"Table) AddIntFunc(title string, f func(*"+FRUIT+") int) *"+FRUIT+"AnyFunc {")
- fmt.Fprintln(w, " t.pb.Order = append(t.pb.Order, title)")
- fmt.Fprintln(w, "")
fmt.Fprintln(w, " sf := new("+FRUIT+"AnyFunc)")
fmt.Fprintln(w, " sf.f = func(x *"+FRUIT+") any {")
fmt.Fprintln(w, " return f(x)")
@@ -191,8 +185,6 @@ func guiMain(w io.Writer, FRUITS string, FRUIT string) {
fmt.Fprintln(w, "")
fmt.Fprintln(w, "// force the application to choose the type of data. this allows the GUI plugin to be smarter")
fmt.Fprintln(w, "func (t *"+FRUITS+"Table) AddTimeFunc(title string, f func(*"+FRUIT+") time.Time) *"+FRUIT+"AnyFunc {")
- fmt.Fprintln(w, " t.pb.Order = append(t.pb.Order, title)")
- fmt.Fprintln(w, "")
fmt.Fprintln(w, " sf := new("+FRUIT+"AnyFunc)")
fmt.Fprintln(w, " sf.f = func(x *"+FRUIT+") any {")
fmt.Fprintln(w, " return f(x)")
@@ -325,19 +317,8 @@ func guiUpdate(w io.Writer, FRUITS string, FRUIT string) {
fmt.Fprintln(w, " mt.pb.Uuid = uuid.New().String()")
fmt.Fprintln(w, "}")
fmt.Fprintln(w, "")
-
fmt.Fprintln(w, "// START TABLE UPDATE (doesn't work yet)")
fmt.Fprintln(w, "")
- fmt.Fprintln(w, "func (mt *"+FRUITS+"Table) dumpStringFunc(name string) {")
- fmt.Fprintln(w, " for i, r := range mt.pb.StringCols {")
- fmt.Fprintln(w, " // log.Info(\"could use\", i, r.Header.Name, \"for name =\", name)")
- fmt.Fprintln(w, " if r.Header.Name == name {")
- fmt.Fprintln(w, " log.Info(\"dump Strings row\", i, r.Header.Name, r.Vals)")
- fmt.Fprintln(w, " break")
- fmt.Fprintln(w, " }")
- fmt.Fprintln(w, " }")
- fmt.Fprintln(w, "}")
- fmt.Fprintln(w, "")
}
func guiTableDelete(w io.Writer, FRUITS string, FRUIT string) {