summaryrefslogtreecommitdiff
path: root/tree/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-17 23:39:03 -0600
committerJeff Carr <[email protected]>2024-01-17 23:39:03 -0600
commita0baba0821441d9cf38f0b33fe12fb96925c6236 (patch)
tree2aece2a890c66c36b08524e117753817078ee58c /tree/debug.go
parentbee272651ad38453aef27f098513f7be652c39bf (diff)
new paths
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'tree/debug.go')
-rw-r--r--tree/debug.go44
1 files changed, 0 insertions, 44 deletions
diff --git a/tree/debug.go b/tree/debug.go
deleted file mode 100644
index c79f35b..0000000
--- a/tree/debug.go
+++ /dev/null
@@ -1,44 +0,0 @@
-package tree
-
-import (
- "go.wit.com/log"
- "go.wit.com/gui/widget"
-)
-
-func (n *Node) ShowButtons() {
- if n.WidgetType == widget.Button {
- n.DumpWidget("Button:")
- }
-
- for _, child := range n.children {
- child.ShowButtons()
- }
-}
-
-func (n *Node) DumpWidget(pad string) {
- log.Warn("node:", pad, n.WidgetId, ",", n.WidgetType, ",", n.GetProgName())
-}
-
-var depth int = 0
-
-func (n *Node) ListWidgets() {
- if (n == nil) {
- log.Warn("ERRRORRRR: n == nil in ListWidgets()")
- log.Warn("ERRRORRRR: n == nil in ListWidgets()")
- log.Warn("ERRRORRRR: n == nil in ListWidgets()")
- return
- }
-
- var pad string
- for i := 0; i < depth; i++ {
- pad = pad + " "
- }
- n.DumpWidget(pad)
-
- for _, child := range n.children {
- depth += 1
- child.ListWidgets()
- depth -= 1
- }
- return
-}