summaryrefslogtreecommitdiff
path: root/toolkit/nocui/event.go
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/nocui/event.go')
-rw-r--r--toolkit/nocui/event.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/toolkit/nocui/event.go b/toolkit/nocui/event.go
index 73b7ff2..1075266 100644
--- a/toolkit/nocui/event.go
+++ b/toolkit/nocui/event.go
@@ -45,22 +45,3 @@ func (n *node) doWidgetClick() {
default:
}
}
-
-func (n *node) doUserEvent() {
- if (callback == nil) {
- log(logError, "doUserEvent() callback == nil", n.WidgetId)
- return
- }
- var a toolkit.Action
- a.WidgetId = n.WidgetId
- a.Name = n.Name
- a.Text = n.Text
- a.S = n.S
- a.I = n.I
- a.B = n.B
- a.ActionType = toolkit.User
- log(logInfo, "doUserEvent() START: send a user event to the callback channel")
- callback <- a
- log(logInfo, "doUserEvent() END: sent a user event to the callback channel")
- return
-}