diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-09 19:44:41 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-09 19:44:41 -0400 |
| commit | ce571bad52589008b8efe6cc0a6e3f76c7f88856 (patch) | |
| tree | ee797fc408071f929d1a53ae52ba39595d3aab8a /button.go | |
| parent | ab11900d43b02ab2c01f5963b3cfaf8b623ebd58 (diff) | |
Removed error returns from Control.preferredSize() since errors are not going to be returned anymore.
Diffstat (limited to 'button.go')
| -rw-r--r-- | button.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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() } |
