summaryrefslogtreecommitdiff
path: root/redo
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-26 11:21:21 -0400
committerPietro Gagliardi <[email protected]>2014-07-26 11:21:21 -0400
commit22989c13da1ece51a815046ee68ff57c36bbeaeb (patch)
treeb4cdae288b5f94d62aca2bebd39c7ec6118f4344 /redo
parentb5d8b4f3de3a65b7debd3ddb6da2c28823044a00 (diff)
Removed sizing.endResize(); it's not really used at this point.
Diffstat (limited to 'redo')
-rw-r--r--redo/sizing.go1
-rw-r--r--redo/sizing_darwin.go4
-rw-r--r--redo/sizing_unix.go5
-rw-r--r--redo/sizing_windows.go4
4 files changed, 0 insertions, 14 deletions
diff --git a/redo/sizing.go b/redo/sizing.go
index 97cf4e8..3c71feb 100644
--- a/redo/sizing.go
+++ b/redo/sizing.go
@@ -45,7 +45,6 @@ func (c *container) resize(width, height int) {
return
}
c.d = c.beginResize()
- defer c.endResize(c.d)
}
d := c.d
allocations := c.child.allocate(0, 0, width, height, d)
diff --git a/redo/sizing_darwin.go b/redo/sizing_darwin.go
index 8b141c2..afd4bca 100644
--- a/redo/sizing_darwin.go
+++ b/redo/sizing_darwin.go
@@ -35,10 +35,6 @@ func (w *window) beginResize() (d *sizing) {
return d
}
-func (c *container) endResize(d *sizing) {
- // redraw
-}
-
func (c *container) translateAllocationCoords(allocations []*allocation, winwidth, winheight int) {
for _, a := range allocations {
// winheight - y because (0,0) is the bottom-left corner of the window and not the top-left corner
diff --git a/redo/sizing_unix.go b/redo/sizing_unix.go
index 5b19f9e..9f95e77 100644
--- a/redo/sizing_unix.go
+++ b/redo/sizing_unix.go
@@ -35,11 +35,6 @@ func (w *window) beginResize() (d *sizing) {
return d
}
-func (c *container) endResize(d *sizing) {
- // TODO
-// C.gtk_widget_queue_draw(w.widget)
-}
-
func (c *container) translateAllocationCoords(allocations []*allocation, winwidth, winheight int) {
// no need for coordinate conversion with gtk+
}
diff --git a/redo/sizing_windows.go b/redo/sizing_windows.go
index 442aad0..429475b 100644
--- a/redo/sizing_windows.go
+++ b/redo/sizing_windows.go
@@ -44,10 +44,6 @@ func (w *window) beginResize() (d *sizing) {
return d
}
-func (c *container) endResize(d *sizing) {
- // redraw
-}
-
func (c *container) translateAllocationCoords(allocations []*allocation, winwidth, winheight int) {
// no translation needed on windows
}