summaryrefslogtreecommitdiff
path: root/prefsize_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-03 15:45:26 -0500
committerPietro Gagliardi <[email protected]>2014-03-03 15:45:26 -0500
commit54a63eb712678a11265979b2a1bd96c5cb08bf21 (patch)
treecdb6ce1b0c182072b5e575c163c877e7862ac879 /prefsize_darwin.go
parent4923f3944c7384012ab3fa9d0e96a7b2baaa687f (diff)
Removed a leftover crash guard from the Mac OS X sysData code (in this case sysData.preferredSize()).
Diffstat (limited to 'prefsize_darwin.go')
-rw-r--r--prefsize_darwin.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/prefsize_darwin.go b/prefsize_darwin.go
index f958c71..e935bff 100644
--- a/prefsize_darwin.go
+++ b/prefsize_darwin.go
@@ -37,6 +37,5 @@ var prefsizefuncs = [nctypes]func(C.id) (int, int){
}
func (s *sysData) preferredSize() (width int, height int) {
-if classTypes[s.ctype].make == nil { return 0, 0 } // prevent lockup during window resize
return prefsizefuncs[s.ctype](s.id)
}