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. --- listbox.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'listbox.go') diff --git a/listbox.go b/listbox.go index 8bd54b1..6d5decc 100644 --- a/listbox.go +++ b/listbox.go @@ -139,10 +139,9 @@ func (l *Listbox) setRect(x int, y int, width int, height int, winheight int) er return l.sysData.setRect(x, y, width, height, winheight) } -func (l *Listbox) preferredSize() (width int, height int, err error) { +func (l *Listbox) preferredSize() (width int, height int) { l.lock.Lock() defer l.lock.Unlock() - width, height = l.sysData.preferredSize() - return + return l.sysData.preferredSize() } -- cgit v1.2.3