summaryrefslogtreecommitdiff
path: root/node.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-23 10:45:43 -0500
committerJeff Carr <[email protected]>2023-04-23 10:45:43 -0500
commit7d178283f1834ddd01123a5d5d0b160bb8d7234d (patch)
tree029e95a3b339e3d5de281124b440f893ead0b5ca /node.go
parent1322a011e7f5b8665b671d4c5ee4e65804ca75be (diff)
more code cleanups
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'node.go')
-rw-r--r--node.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/node.go b/node.go
index 67c7943..85c7fb9 100644
--- a/node.go
+++ b/node.go
@@ -12,24 +12,6 @@ func (n *Node) newNode(title string, t toolkit.WidgetType, custom func()) *Node
newN.WidgetType = t
newN.Custom = custom
- // TODO: This should not be defined for each widget. This has to be stupid
- // or wait a second, is this where I send something to a channel?
- newN.Custom = func() {
- log(debugChange, "Trying to find Window Close. widgetType =", newN.WidgetType)
- if (newN.WidgetType == toolkit.Window) {
- log(debugChange, "Need to delete newN here")
- n.Delete(newN)
- }
- if (newN.Custom == nil) {
- log(debugChange, "newT.Custom() == nil. Not doing anything. SEND SOMETHING TO THE CHANNEL")
- return
- }
- log(debugChange, "newT.Custom() START SEND SOMETHING TO THE CHANNEL node =", newN.Name)
- // send something to the channel here????
- newN.Custom()
- log(debugChange, "newT.Custom() END SEND SOMETHING TO THE CHANNEL node =", newN.Name)
- }
-
n.Append(newN)
newN.parent = n
return newN