summaryrefslogtreecommitdiff
path: root/addText.go
diff options
context:
space:
mode:
Diffstat (limited to 'addText.go')
-rw-r--r--addText.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/addText.go b/addText.go
index 7b01066..f89c15a 100644
--- a/addText.go
+++ b/addText.go
@@ -18,19 +18,6 @@ func (n *Node) addText(newS string) {
}
n.strings[newS] = highest + 1 // TODO: use the int's for the order
n.newString = newS
- /*
- // time.Sleep(time.Duration(1000 * time.Nanosecond)) // doesn't work
- // maybe this stupid chipset is defective. TODO: try on different hardware
- // tried with go 1.21.4 debian sid
- mylock.Lock()
- n.mu.Lock()
- // time.Sleep(time.Duration(10 * time.Microsecond)) // doesn't work
- time.Sleep(time.Duration(100 * time.Microsecond)) // does work
- n.strings = append(n.strings, newS)
- n.mu.Unlock()
- mylock.Unlock()
- log.Log(INFO, "addText() has strings:", n.strings)
- */
// inform the toolkits
sendAction(n, widget.AddText)