From 91113a32bf164ddd2dc26639538f8833e692710f Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 13 Feb 2014 11:45:10 -0500 Subject: Removed Control.setParent() as the parent/child hierarchy is now unidirectional. --- button.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'button.go') 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 -} -- cgit v1.2.3