summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
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
}