From 2f43928a3e6ba71a93bb361cc0b6caab202e3895 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Tue, 28 Jul 2015 21:09:32 -0400
Subject: [PATCH] remove old resize_window function

---
 pd/nw/dialog_canvas.html | 8 --------
 pd/nw/dialog_iemgui.html | 8 --------
 pd/nw/dialog_prefs.html  | 9 ---------
 3 files changed, 25 deletions(-)

diff --git a/pd/nw/dialog_canvas.html b/pd/nw/dialog_canvas.html
index 3952adc78..b58267457 100644
--- a/pd/nw/dialog_canvas.html
+++ b/pd/nw/dialog_canvas.html
@@ -519,14 +519,6 @@ function cancel() {
     }
 }
 
-//function resize_window() {
-//    var w = document.body.scrollWidth,
-//        h = document.body.scrollHeight,
-//        win = pdgui.get_dialogwin(pd_object_callback);
-//    win.width = w;
-//    win.height = h;
-//}
-
 function populate_array_form(arrays) {
     var arrays_select, a_field = document.getElementById('arrays');
     var i, opt;
diff --git a/pd/nw/dialog_iemgui.html b/pd/nw/dialog_iemgui.html
index 1e83d7469..b74369134 100644
--- a/pd/nw/dialog_iemgui.html
+++ b/pd/nw/dialog_iemgui.html
@@ -476,14 +476,6 @@ function cancel() {
     pdgui.pdsend(pd_object_callback + " cancel");
 }
 
-//function resize_window() {
-//    var w = document.body.scrollWidth,
-//        h = document.body.scrollHeight,
-//        win = pdgui.get_dialogwin(pd_object_callback);
-//    win.width = w;
-//    win.height = h;
-//}
-
 // This gets called from the nw_create_window function in index.html
 // It provides us with our window id from the C side.  Once we have it
 // we can create the menu and register event callbacks
diff --git a/pd/nw/dialog_prefs.html b/pd/nw/dialog_prefs.html
index 4a19b6083..f7fb0b37e 100644
--- a/pd/nw/dialog_prefs.html
+++ b/pd/nw/dialog_prefs.html
@@ -399,15 +399,6 @@ function cancel() {
     //pdgui.pdsend(pd_object_callback + " cancel");
 }
 
-//function resize_window() {
-//    var w = document.body.scrollWidth,
-//        h = document.body.scrollHeight,
-//        win = pdgui.get_dialogwin(pd_object_callback);
-//    win.width = w;
-//    win.height = h;
-//pdgui.gui_post("w is " + w + " and h is " + h);
-//}
-
 function change_api(elem) {
     var id = elem.getAttribute('id'),
         value = elem.getAttribute('value');
-- 
GitLab