changeset 4271:59d4f0f5a03d

RT-30974: Quanutm Cleanup: Remove unused methods from PresentableState
author snorthov
date Thu, 11 Jul 2013 10:27:47 -0400
parents 32b2700da7ee
children 62839def88df
files modules/graphics/src/main/java/com/sun/prism/PresentableState.java
diffstat 1 files changed, 0 insertions(+), 60 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/prism/PresentableState.java	Thu Jul 11 15:02:34 2013 +0200
+++ b/modules/graphics/src/main/java/com/sun/prism/PresentableState.java	Thu Jul 11 10:27:47 2013 -0400
@@ -155,16 +155,6 @@
     }
 
     /**
-     * Updates this object's state to indicate that the underlying View is
-     * closed.
-     *
-     * May be called on any thread.
-     */
-    public void setViewClosed() {
-        this.isClosed = true;
-    }
-
-    /**
      * @return true if the underlying View is closed, false otherwise
      *
      * May be called on any thread.
@@ -289,54 +279,4 @@
             isClosed = true;
         }
     }
-
-    public boolean isUpToDate() {
-        if (isClosed || view == null) {
-            return true; // the dead do not change
-        }
-
-        if (viewWidth != view.getWidth()) {
-            return false;
-        }
-        if (viewHeight != view.getHeight()) {
-            return false;
-        }
-        if (!view.getWindow().equals(window)) {
-            return false;
-        }
-
-        if (window != null) {
-            if (!hasWindowManager) {
-                if (windowX != window.getX()) {
-                    return false;
-                }
-                if (windowY != window.getY()) {
-                    return false;
-                }
-                if (windowAlpha != window.getAlpha()) {
-                    return false;
-                }
-            }
-            if (nativeView != view.getNativeView()) {
-                return false;
-            }
-            if (nativeWindowHandle != window.getNativeWindow()) {
-                return false;
-            }
-            if (isWindowVisible != window.isVisible()) {
-                return false;
-            }
-            if (isWindowMinimized != window.isMinimized()) {
-                return false;
-            }
-            // really needed ? Would think that Glass would send a
-            // REPAINT request.....
-            if (screenHeight != window.getScreen().getHeight()) {
-                return false;
-            }
-        }
-
-        // we got here, must be current
-        return true;
-    }
 }