summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2021-10-25 06:50:27 -0500
committerJeff Carr <[email protected]>2021-10-25 06:50:27 -0500
commitc8e32a0980e984deb04dc9688f422b9108783cda (patch)
tree4db0145ae38fee8997d67dc6891a3623b56b285a /structs.go
parent9460526eadccf3f4a8f8eccdf6acbeaa6ca35bef (diff)
REORG: move more find() functions into find.go
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/structs.go b/structs.go
index cf84746..8a401ca 100644
--- a/structs.go
+++ b/structs.go
@@ -3,7 +3,6 @@ package gui
import (
"image/color"
"log"
- "os"
"github.com/andlabs/ui"
"golang.org/x/image/font"
@@ -169,22 +168,6 @@ func (b *GuiBox) SetNode(n *Node) {
}
}
-func (w *GuiWindow) FindNode() *Node {
- return w.node
-}
-
-func (b *GuiBox) FindNode() *Node {
- log.Println("gui.FindNode() on GuiBox")
- if b.node != nil {
- return b.node
- }
- Data.ListChildren(true)
- b.Dump()
- log.Println("gui.FindNode() on GuiBox is nil")
- os.Exit(-1)
- return nil
-}
-
func (s GuiBox) Append(child ui.Control, x bool) {
if s.UiBox == nil {
return