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. --- stack.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'stack.go') diff --git a/stack.go b/stack.go index c6335ef..b37b935 100644 --- a/stack.go +++ b/stack.go @@ -78,9 +78,6 @@ func (s *Stack) make(window *sysData) error { } func (s *Stack) setRect(x int, y int, width int, height int, winheight int) error { - s.lock.Lock() - defer s.lock.Unlock() - var stretchywid, stretchyht int if len(s.controls) == 0 { // do nothing if there's nothing to do @@ -138,9 +135,6 @@ func (s *Stack) setRect(x int, y int, width int, height int, winheight int) erro // The preferred size of a Stack is the sum of the preferred sizes of non-stretchy controls + (the number of stretchy controls * the largest preferred size among all stretchy controls). func (s *Stack) preferredSize() (width int, height int) { - s.lock.Lock() - defer s.lock.Unlock() - max := func(a int, b int) int { if a > b { return a -- cgit v1.2.3