From 38acca06d1764c695edd462ac353d0f3478a078b Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Mon, 30 Oct 2023 16:27:40 +0100 Subject: [PATCH] Remove dead code The key being removed could not exist in the map as it is not even the same type than keys. --- lib/src/extend/extension_store.dart | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/src/extend/extension_store.dart b/lib/src/extend/extension_store.dart index a3f276ee9..3637b5aac 100644 --- a/lib/src/extend/extension_store.dart +++ b/lib/src/extend/extension_store.dart @@ -355,11 +355,6 @@ class ExtensionStore { } } } - - // If [selectors] doesn't contain [extension.extender], for example if it - // was replaced due to :not() expansion, we must get rid of the old - // version. - if (!containsExtension) sources.remove(extension.extender); } return additionalExtensions;