changeset 3827:3f4e67f06aad

Fix compile error in Rule.java
author David Grieve<david.grieve@oracle.com>
date Tue, 14 May 2013 17:38:25 -0700
parents e6ec5624c645
children 9574c86c4067
files javafx-ui-common/src/com/sun/javafx/css/Rule.java
diffstat 1 files changed, 0 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-common/src/com/sun/javafx/css/Rule.java	Tue May 14 16:38:10 2013 -0700
+++ b/javafx-ui-common/src/com/sun/javafx/css/Rule.java	Tue May 14 17:38:25 2013 -0700
@@ -175,29 +175,6 @@
         if (Rule.strings == null) Rule.strings = stringStoreStrings;
     }
 
-    /**
-     * Checks all selectors for a match, returning an array of all relevant
-     * matches.  A match is considered irrelevant if its presence or absence
-     * cannot affect whether or not the selector applies;  this means that among
-     * static (non-pseudoclass) matches, only the highest priority one is
-     * relevant, and among pseudoclass matches, only ones with higher priority
-     * than the most specific static match are relevant.
-     *
-     *@param node the object to test against
-     *@return an array of all relevant matches, or <code>null</code> if none
-     */
-    List<Match> matches(Node node) {
-        List<Match> matches = new ArrayList<Match>();
-        for (int i = 0; i < selectors.size(); i++) {
-            Selector sel = selectors.get(i);
-            Match match = sel.matches(node);
-            if (match != null) {
-                matches.add(match);
-            }
-        }
-        return matches;
-    }
-
     // Return mask of selectors that match
     long applies(Node node, Set<PseudoClass>[] triggerStates) {
         long mask = 0;