diff options
| author | Jeff Carr <[email protected]> | 2021-11-01 02:15:38 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-11-01 02:15:38 -0500 |
| commit | c6474082220091d2fa58e52a34af2f45a434c0b5 (patch) | |
| tree | 15877db9a3510b2466dd1f6529b4efbcf94c9fa8 | |
| parent | bd6617223273dc8e808d018458f6ca52e9a6f639 (diff) | |
CODE: old code
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | new-structs.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/new-structs.go b/new-structs.go index b320b24..62f826c 100644 --- a/new-structs.go +++ b/new-structs.go @@ -293,22 +293,12 @@ func (n *Node) AddTab(title string, uiC *ui.Box) *Node { log.Println("gui.Node.AddTab() ERROR ui.Window == nil") return nil } - /* - if parent.box == nil { - parent.Dump() - // panic("gui.AddTab() ERROR box == nil") - } - */ if parent.uiTab == nil { inittab := ui.NewTab() // no, not that 'inittab' parent.uiWindow.SetChild(inittab) parent.uiWindow.SetMargined(true) parent.uiTab = inittab - - // parent.Dump() - // panic("gui.AddTab() ERROR uiTab == nil") } - tab := parent.uiTab parent.uiWindow.SetMargined(true) @@ -322,7 +312,6 @@ func (n *Node) AddTab(title string, uiC *ui.Box) *Node { newNode := parent.makeNode(title, 555, 600 + Config.counter) newNode.uiTab = tab newNode.uiBox = uiC - // panic("gui.AddTab() after makeNode()") tabSetMargined(newNode.uiTab) return newNode } |
