Commit ee15b04e authored by Mason Freed's avatar Mason Freed Committed by Chromium LUCI CQ

Remove NeedsUpdatedDistribution()

This function is now unused.

Fixed: 1158418
Change-Id: Ib714755f0a3f820b2340fb15383ed6162f822ce4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2593283
Auto-Submit: Mason Freed <masonfreed@chromium.org>
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#837332}
parent 4970b5e2
......@@ -1175,14 +1175,6 @@ bool CSSSelector::FollowsPart() const {
return previous->GetPseudoType() == kPseudoPart;
}
bool CSSSelector::NeedsUpdatedDistribution() const {
return ForAnyInTagHistory(
[](const CSSSelector& selector) -> bool {
return selector.GetPseudoType() == CSSSelector::kPseudoHostContext;
},
*this);
}
String CSSSelector::FormatPseudoTypeForDebugging(PseudoType type) {
for (const auto& s : kPseudoTypeWithoutArgumentsMap) {
if (s.type == type)
......
......@@ -399,7 +399,6 @@ class CORE_EXPORT CSSSelector {
bool HasShadowPseudo() const;
// Returns true if the immediately preceeding simple selector is ::part.
bool FollowsPart() const;
bool NeedsUpdatedDistribution() const;
static String FormatPseudoTypeForDebugging(PseudoType);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment