summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-27 16:10:22 -0600
committerJeff Carr <[email protected]>2024-01-27 16:10:22 -0600
commit890e294a906478ea4b20d132660b33d5f8174da4 (patch)
tree1e1d890916dce8cb31cb5e9158aa516410460427
parentf8059d51d3c16df3903ba06afc1e9ca5898383df (diff)
remove old code and notes
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--addText.go1
-rw-r--r--box.go1
-rw-r--r--button.go1
-rw-r--r--place.go3
-rw-r--r--setText.go1
-rw-r--r--structs.go4
-rw-r--r--window.go13
7 files changed, 0 insertions, 24 deletions
diff --git a/addText.go b/addText.go
index 8ca9ca3..ed837ea 100644
--- a/addText.go
+++ b/addText.go
@@ -9,7 +9,6 @@ import (
func compareStrings(n *tree.Node, ss []string) {
}
-// func (n *node) addText(a *widget.Action) {
func addText(n *tree.Node, a *widget.Action) {
var tk *guiWidget
tk = n.TK.(*guiWidget)
diff --git a/box.go b/box.go
index b3b133a..bb9a8b5 100644
--- a/box.go
+++ b/box.go
@@ -50,7 +50,6 @@ func newBox(n *tree.Node) {
TODO: handle user killing/closing a window using the OS
*/
-// func (n *node) rawBox() *ui.Box {
func rawBox(n *tree.Node) *ui.Box {
var box *ui.Box
diff --git a/button.go b/button.go
index abf1a1d..3366f21 100644
--- a/button.go
+++ b/button.go
@@ -7,7 +7,6 @@ import (
_ "go.wit.com/dev/andlabs/ui/winmanifest"
)
-// func (p *node) newButton(n *node) {
func newButton(p *tree.Node, n *tree.Node) {
if notNew(n) {
return
diff --git a/place.go b/place.go
index 1ac3736..657bab5 100644
--- a/place.go
+++ b/place.go
@@ -91,9 +91,6 @@ func place(p *tree.Node, n *tree.Node) bool {
panic("tk.uiControl == nil")
}
log.Log(ERROR, "CHECK LOGIC ON THIS. APPENDING directly into a window without a tab")
- // log.Log(ERROR, "THIS SHOULD NEVER HAPPEN ??????? trying to place() node=", n.WidgetId, n.GetProgName(), n.Text, n.WidgetType)
- // log.Log(ERROR, "THIS SHOULD NEVER HAPPEN ??????? trying to place() on parent=", p.WidgetId, p.GetProgName(), p.Text, p.WidgetType)
- // panic("tk.uiControl == nil")
ptk.uiTab.Append(widget.GetString(n.State.Value), tk.uiControl)
ptk.boxC += 1
return true
diff --git a/setText.go b/setText.go
index a36d97f..9279915 100644
--- a/setText.go
+++ b/setText.go
@@ -6,7 +6,6 @@ import (
"go.wit.com/widget"
)
-// func (n *node) setText(a *widget.Action) {
func setText(n *tree.Node, a *widget.Action) {
name := widget.GetString(a.Value)
var tk *guiWidget
diff --git a/structs.go b/structs.go
index 4e1c056..1e2017f 100644
--- a/structs.go
+++ b/structs.go
@@ -7,10 +7,6 @@ import (
_ "go.wit.com/dev/andlabs/ui/winmanifest"
)
-// var andlabs map[int]*andlabsT
-// var callback func(int) bool
-// var callback chan toolkit.Action
-
// It's probably a terrible idea to call this 'me'
var me config
diff --git a/window.go b/window.go
index 744c951..5884db9 100644
--- a/window.go
+++ b/window.go
@@ -37,16 +37,3 @@ func newWindow(p, n *tree.Node) {
win.Show()
return
}
-
-/*
-func (n *node) SetWindowTitle(title string) {
- log.Log(CHANGE, "toolkit NewWindow", widget.GetString(n.value), "title", title)
- win := n.tk.uiWindow
- if win == nil {
- log.Log(ERROR, "Error: no window", n.WidgetId)
- } else {
- win.SetTitle(title)
- log.Log(CHANGE, "Setting the window title", title)
- }
-}
-*/