From 6da6814f00243eb5c7024bf506fb5bdd123509aa Mon Sep 17 00:00:00 2001 From: Katter Date: Mon, 2 Sep 2024 13:27:42 +0500 Subject: [PATCH] Remove unused extension method in domain --- SightKeeper.Domain/Extensions.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/SightKeeper.Domain/Extensions.cs b/SightKeeper.Domain/Extensions.cs index 0dca8648..911566b5 100644 --- a/SightKeeper.Domain/Extensions.cs +++ b/SightKeeper.Domain/Extensions.cs @@ -5,12 +5,6 @@ namespace SightKeeper.Domain; internal static class Extensions { - public static bool HasDuplicates(this IEnumerable enumerable) - { - HashSet hashSet = new(); - return !enumerable.All(hashSet.Add); - } - public static ImmutableHashSet ToImmutableHashSetThrowOnDuplicate(this IEnumerable enumerable) { var tagsBuilder = ImmutableHashSet.CreateBuilder();