Skip to content

Commit 4e3bd1c

Browse files
committed
Deprecated method CssStyleSheet.validateSelectors(SelectorList, int, DomNode) removed
1 parent 01baa87 commit 4e3bd1c

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
<action type="add" dev="RhinoTeam">
1313
core-js: Named capture groups in RegularExpressions now supported.
1414
</action>
15+
<action type="remove" dev="rbri">
16+
Deprecated method CssStyleSheet.validateSelectors(SelectorList, int, DomNode) removed.
17+
</action>
1518
<action type="remove" dev="rbri">
1619
Deprecated method HtmlForm.getElements() removed.
1720
</action>

src/main/java/org/htmlunit/css/CssStyleSheet.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,25 +1044,6 @@ private static String toString(final InputSource source) {
10441044
}
10451045
}
10461046

1047-
/**
1048-
* Validates the list of selectors.
1049-
* @param selectorList the selectors
1050-
* @param documentMode see {@link Document#getDocumentMode()}
1051-
* @param domNode the dom node the query should work on
1052-
* @throws CSSException if a selector is invalid
1053-
*
1054-
* @deprecated as of version 4.5.0; use {@link #validateSelectors(SelectorList, DomNode)} instead
1055-
*/
1056-
@Deprecated
1057-
public static void validateSelectors(final SelectorList selectorList, final int documentMode,
1058-
final DomNode domNode) throws CSSException {
1059-
for (final Selector selector : selectorList) {
1060-
if (!isValidSelector(selector, domNode)) {
1061-
throw new CSSException("Invalid selector: " + selector, null);
1062-
}
1063-
}
1064-
}
1065-
10661047
/**
10671048
* Validates the list of selectors.
10681049
* @param selectorList the selectors

0 commit comments

Comments
 (0)