From 0e8680c04f3b364352a57e686bc93d018c6140e3 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 17 Mar 2014 14:09:09 -0400 Subject: Dumped the mutex locks from the other controls and elaborated/asked for help in the README. --- grid.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'grid.go') diff --git a/grid.go b/grid.go index 007a04a..309c5db 100644 --- a/grid.go +++ b/grid.go @@ -121,9 +121,6 @@ func (g *Grid) make(window *sysData) error { } func (g *Grid) setRect(x int, y int, width int, height int, winheight int) error { - g.lock.Lock() - defer g.lock.Unlock() - max := func(a int, b int) int { if a > b { return a @@ -188,9 +185,6 @@ func (g *Grid) setRect(x int, y int, width int, height int, winheight int) error // filling and stretchy are ignored for preferred size calculation func (g *Grid) preferredSize() (width int, height int) { - g.lock.Lock() - defer g.lock.Unlock() - max := func(a int, b int) int { if a > b { return a -- cgit v1.2.3