Commit 1c7de5be authored by Henrique Ferreiro's avatar Henrique Ferreiro Committed by Commit Bot

Move ExtractInvalidationSets to the unnamed namespace

This function isn't used elsewhere.

Change-Id: I9f009bfb5376b64fdfdd9eb165084663d4f7f38d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2505136Reviewed-by: default avatarAlan Cutter <alancutter@chromium.org>
Commit-Queue: Henrique Ferreiro <hferreiro@igalia.com>
Cr-Commit-Position: refs/heads/master@{#822082}
parent 223c45b1
...@@ -267,6 +267,21 @@ bool InvalidationSetMapsEqual(const MapType& a, const MapType& b) { ...@@ -267,6 +267,21 @@ bool InvalidationSetMapsEqual(const MapType& a, const MapType& b) {
return true; return true;
} }
void ExtractInvalidationSets(InvalidationSet* invalidation_set,
DescendantInvalidationSet*& descendants,
SiblingInvalidationSet*& siblings) {
CHECK(invalidation_set->IsAlive());
if (auto* descendant =
DynamicTo<DescendantInvalidationSet>(invalidation_set)) {
descendants = descendant;
siblings = nullptr;
return;
}
siblings = To<SiblingInvalidationSet>(invalidation_set);
descendants = siblings->Descendants();
}
} // anonymous namespace } // anonymous namespace
InvalidationSet& RuleFeatureSet::EnsureMutableInvalidationSet( InvalidationSet& RuleFeatureSet::EnsureMutableInvalidationSet(
...@@ -370,21 +385,6 @@ void RuleFeatureSet::AddInvalidationSet( ...@@ -370,21 +385,6 @@ void RuleFeatureSet::AddInvalidationSet(
} }
} }
void ExtractInvalidationSets(InvalidationSet* invalidation_set,
DescendantInvalidationSet*& descendants,
SiblingInvalidationSet*& siblings) {
CHECK(invalidation_set->IsAlive());
if (auto* descendant =
DynamicTo<DescendantInvalidationSet>(invalidation_set)) {
descendants = descendant;
siblings = nullptr;
return;
}
siblings = To<SiblingInvalidationSet>(invalidation_set);
descendants = siblings->Descendants();
}
RuleFeatureSet::RuleFeatureSet() : is_alive_(true) {} RuleFeatureSet::RuleFeatureSet() : is_alive_(true) {}
RuleFeatureSet::~RuleFeatureSet() { RuleFeatureSet::~RuleFeatureSet() {
......
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