summaryrefslogtreecommitdiff
path: root/grid.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-17 14:09:09 -0400
committerPietro Gagliardi <[email protected]>2014-03-17 14:09:09 -0400
commit0e8680c04f3b364352a57e686bc93d018c6140e3 (patch)
treefbbab88400e8a6060cb59180aa63f2d958b2af52 /grid.go
parentbdb26046b6e91b1cf1a3d752fc36edd059ee5a58 (diff)
Dumped the mutex locks from the other controls and elaborated/asked for help in the README.
Diffstat (limited to 'grid.go')
-rw-r--r--grid.go6
1 files changed, 0 insertions, 6 deletions
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