Skip to content

Commit

Permalink
Remove unused extension method in domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Neakita committed Sep 2, 2024
1 parent 5d00114 commit 6da6814
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions SightKeeper.Domain/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ namespace SightKeeper.Domain;

internal static class Extensions
{
public static bool HasDuplicates<T>(this IEnumerable<T> enumerable)
{
HashSet<T> hashSet = new();
return !enumerable.All(hashSet.Add);
}

public static ImmutableHashSet<T> ToImmutableHashSetThrowOnDuplicate<T>(this IEnumerable<T> enumerable)
{
var tagsBuilder = ImmutableHashSet.CreateBuilder<T>();
Expand Down

0 comments on commit 6da6814

Please sign in to comment.