summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-05 03:00:21 -0600
committerJeff Carr <[email protected]>2025-03-05 03:00:21 -0600
commit15100aad3ee4294fc22bbeb697e6c6b88228a0ca (patch)
tree1b0c8f73b86e9d28b0bc682d35b5e5e6bde00265 /plugin.go
parent975c2d31020540dd4a67fd049aab565bb168ae21 (diff)
func shouldn't have been globalv0.22.22
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/plugin.go b/plugin.go
index 3df0607..3b1d741 100644
--- a/plugin.go
+++ b/plugin.go
@@ -16,30 +16,6 @@ import (
"go.wit.com/widget"
)
-// searches the binary tree for a WidgetId
-func FindWidgetId(id int) *Node {
- return treeRoot.FindWidgetId(id)
-}
-
-// searches the binary tree for a WidgetId
-func (n *Node) FindWidgetId(id int) *Node {
- if n == nil {
- return nil
- }
-
- if n.WidgetId == id {
- return n
- }
-
- for _, child := range n.children {
- newN := child.FindWidgetId(id)
- if newN != nil {
- return newN
- }
- }
- return nil
-}
-
func (me *TreeInfo) InitOK() {
me.ok = true
}