From 063293456d929ffab90b8b8c9e609083644b04a1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 15 Feb 2014 14:03:46 -0500 Subject: More error handling reduction. --- sysdata.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sysdata.go') diff --git a/sysdata.go b/sysdata.go index 4f5c017..b3b3898 100644 --- a/sysdata.go +++ b/sysdata.go @@ -30,7 +30,7 @@ func (c *cSysData) setRect(x int, y int, width int, height int) error { func (c *cSysData) isChecked() bool { panic(runtime.GOOS + " sysData does not define isChecked()") } -func (c *cSysData) text() (string, error) { +func (c *cSysData) text() string { panic(runtime.GOOS + " sysData does not define text()") } func (c *cSysData) append(string) error { @@ -39,13 +39,13 @@ func (c *cSysData) append(string) error { func (c *cSysData) insertBefore(string, int) error { panic(runtime.GOOS + " sysData does not define insertBefore()") } -func (c *cSysData) selectedIndex() (int, error) { +func (c *cSysData) selectedIndex() int { panic(runtime.GOOS + " sysData does not define selectedIndex()") } -func (c *cSysData) selectedIndices() ([]int, error) { +func (c *cSysData) selectedIndices() []int { panic(runtime.GOOS + " sysData does not define selectedIndices()") } -func (c *cSysData) selectedTexts() ([]string, error) { +func (c *cSysData) selectedTexts() []string { panic(runtime.GOOS + " sysData does not define selectedIndex()") } func (c *cSysData) setWindowSize(int, int) error { -- cgit v1.2.3