]> source.dussan.org Git - vaadin-framework.git/commitdiff
Removed allWindows property and related code to it.
authorJani Laakso <jani.laakso@itmill.com>
Tue, 15 May 2007 16:36:55 +0000 (16:36 +0000)
committerJani Laakso <jani.laakso@itmill.com>
Tue, 15 May 2007 16:36:55 +0000 (16:36 +0000)
svn changeset:1438/svn branch:trunk

src/com/itmill/toolkit/terminal/web/ApplicationServlet.java

index b3daf4673371bb5ef79891a000e2ad09c00dcafd..3d93114c180d931c4a0a83f2be9a60b789664d89 100644 (file)
@@ -216,8 +216,6 @@ public class ApplicationServlet extends HttpServlet implements
 
        private static WeakHashMap applicationToLastRequestDate = new WeakHashMap();
 
-       private List allWindows = new LinkedList();
-
        private WeakHashMap applicationToAjaxAppMgrMap = new WeakHashMap();
 
        private WeakHashMap licenseForApplicationClass = new WeakHashMap();
@@ -1627,16 +1625,9 @@ public class ApplicationServlet extends HttpServlet implements
                        window = application.getWindow(windowName);
 
                        if (window == null) {
-
-                               // If the window has existed, and is now removed
-                               // send a blank page
-                               if (allWindows.contains(windowName))
-                                       return null;
-
                                // By default, we use main window
                                window = application.getMainWindow();
                        } else if (!window.isVisible()) {
-
                                // Implicitly painting without actually invoking paint()
                                window.requestRepaintRequests();
 
@@ -1752,9 +1743,6 @@ public class ApplicationServlet extends HttpServlet implements
                Window win = event.getWindow();
                win.addListener((Paintable.RepaintRequestListener) this);
 
-               // Add to window names
-               allWindows.add(win.getName());
-
                // Add window to dirty window references if it is visible
                // Or request the window to pass on the repaint requests
                if (win.isVisible())