summaryrefslogtreecommitdiff
path: root/table.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-04 14:33:53 -0600
committerJeff Carr <[email protected]>2025-03-04 14:33:53 -0600
commit5e1ec700fd05b3a324f4258f60a97661db179597 (patch)
treea29c322cbc901b620fdb65d25cc49ce6144563a9 /table.go
parent5c033ce4316ec58177658abbef46ecdedbec8047 (diff)
rm old code
Diffstat (limited to 'table.go')
-rw-r--r--table.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/table.go b/table.go
index 363c84e..d6d07a4 100644
--- a/table.go
+++ b/table.go
@@ -57,26 +57,6 @@ func (me *TreeInfo) doTable(a widget.Action) {
}
}
-func makeTableWindow(pb *guipb.Widget) *Node {
- a := new(widget.Action)
- a.WidgetType = widget.Window
- a.WidgetId = int(pb.Id)
- a.ParentId = 0
- a.State.Enable = true
-
- return AddNode(a)
-}
-
-func (win *Node) makeWindowGrid(pb *guipb.Widget) *Node {
- a := new(widget.Action)
- a.WidgetType = widget.Grid
- a.WidgetId = int(pb.Id)
- a.ParentId = win.WidgetId
- a.State.Enable = true
-
- return AddNode(a)
-}
-
func (grid *Node) makeGridLabel(pb *guipb.Widget, w int, h int) *Node {
a := new(widget.Action)
a.WidgetType = widget.Label
@@ -163,12 +143,6 @@ func (me *TreeInfo) updateRow(t *guipb.Table, name string) {
func (me *TreeInfo) makeTable(t *guipb.Table) {
var grid *Node
- if t.Window != nil {
- // deprecate this early hack
- win := makeTableWindow(t.Window)
- me.Add(win)
- win.makeWindowGrid(t.Grid)
- }
if t.Parent != nil {
a := new(widget.Action)
a.WidgetType = widget.Grid