diff --git a/pd/nw/dialog_canvas.html b/pd/nw/dialog_canvas.html
index 3952adc789b0ec18b434dc49169dd04fa2bc815b..b58267457c87175cbeaedceadb2bfe11b5a61c4e 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 1e83d7469c8fdfd03808d2296c4ad0c3d4702533..b74369134e82e441e9b24c77ce1c3c4a462a5f94 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 4a19b6083ea5b66f2157af57d4b1eaf763f891d5..f7fb0b37e86aed6362866e7c304ab2e5a34c51d9 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');