From 48c85151dcf4cc6c84bf37913934dc342cd65515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 14 Oct 2017 11:56:03 +0200 Subject: [PATCH] selectors: Remove useless assertion. The code below asserts the same in a more fine-grained way. --- components/selectors/matching.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/components/selectors/matching.rs b/components/selectors/matching.rs index 071c2bd9a96..3aeb84be779 100644 --- a/components/selectors/matching.rs +++ b/components/selectors/matching.rs @@ -470,15 +470,6 @@ where E: Element, F: FnMut(&E, ElementSelectorFlags), { - if cfg!(debug_assertions) { - if context.nesting_level == 0 && - context.shared.matching_mode == MatchingMode::ForStatelessPseudoElement { - assert!(iter.clone().any(|c| { - matches!(*c, Component::PseudoElement(..)) - })); - } - } - // If this is the special pseudo-element mode, consume the ::pseudo-element // before proceeding, since the caller has already handled that part. if context.nesting_level == 0 &&