From ce571bad52589008b8efe6cc0a6e3f76c7f88856 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 9 Mar 2014 19:44:41 -0400 Subject: Removed error returns from Control.preferredSize() since errors are not going to be returned anymore. --- button.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'button.go') diff --git a/button.go b/button.go index f29d869..325a556 100644 --- a/button.go +++ b/button.go @@ -69,10 +69,9 @@ func (b *Button) setRect(x int, y int, width int, height int, winheight int) err return b.sysData.setRect(x, y, width, height, winheight) } -func (b *Button) preferredSize() (width int, height int, err error) { +func (b *Button) preferredSize() (width int, height int) { b.lock.Lock() defer b.lock.Unlock() - width, height = b.sysData.preferredSize() - return + return b.sysData.preferredSize() } -- cgit v1.2.3