From 934470d1a981e6f01742bb88aa79b52e2a8bb4f3 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 1 Nov 2021 02:15:38 -0500 Subject: [PATCH] CODE: old code Signed-off-by: Jeff Carr --- new-structs.go | 11 ----------- 1 file changed, 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 }