summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--button.go5
-rw-r--r--control.go1
-rw-r--r--window.go3
3 files changed, 0 insertions, 9 deletions
diff --git a/button.go b/button.go
index d464780..c3f5c7e 100644
--- a/button.go
+++ b/button.go
@@ -12,7 +12,6 @@ type Button struct {
lock sync.Mutex
created bool
- parent Control
sysData *sysData
initText string
}
@@ -55,7 +54,3 @@ func (b *Button) setRect(x int, y int, width int, height int) error {
return b.sysData.setRect(x, y, width, height)
}
-
-func (b *Button) setParent(c Control) {
- b.parent = c
-}
diff --git a/control.go b/control.go
index a1f83af..bf204ed 100644
--- a/control.go
+++ b/control.go
@@ -10,5 +10,4 @@ import (
type Control interface {
apply(window *sysData) error
setRect(x int, y int, width int, height int) error
- setParent(c Control)
}
diff --git a/window.go b/window.go
index 29003ec..da5606a 100644
--- a/window.go
+++ b/window.go
@@ -105,6 +105,3 @@ func (w *Window) apply(window *sysData) error {
func (w *Window) setRect(x int, y int, width int, height int) error {
panic("Window.setRect() should never be called")
}
-func (w *Window) setParent(c Control) {
- panic("Window.setParent() should never be called")
-}