summaryrefslogtreecommitdiff
path: root/node.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-05-09 20:25:37 -0500
committerJeff Carr <[email protected]>2023-05-09 20:25:37 -0500
commit26b06253d540fbcac2ae1372aa7fc0b1089bab98 (patch)
tree9afc2600ce0633e85990f8376091d93fec7c6d3a /node.go
parent45ef7f37c4af0495ccf988f2f726aaea24a999e4 (diff)
more code cleanups
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'node.go')
-rw-r--r--node.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/node.go b/node.go
index 93d0ca8..daba6d5 100644
--- a/node.go
+++ b/node.go
@@ -5,12 +5,11 @@ import "git.wit.org/wit/gui/toolkit"
/*
generic function to create a new node on the binary tree
*/
-func (n *Node) newNode(title string, t toolkit.WidgetType, custom func()) *Node {
+func (n *Node) newNode(title string, t toolkit.WidgetType) *Node {
var newN *Node
newN = addNode(title)
newN.WidgetType = t
- newN.Custom = custom
if n.WidgetType == toolkit.Grid {
n.gridIncrement()