diff --git a/src/Speckle.Sdk.Dependencies/Collections.cs b/src/Speckle.Sdk.Dependencies/Collections.cs index b4c910da..aa622c83 100644 --- a/src/Speckle.Sdk.Dependencies/Collections.cs +++ b/src/Speckle.Sdk.Dependencies/Collections.cs @@ -22,23 +22,4 @@ public static class Collections public static class EnumerableExtensions { public static IEnumerable RangeFrom(int from, int to) => Enumerable.Range(from, to - from + 1); - -#if NETSTANDARD2_0 - public static IEnumerable DistinctBy( - this IEnumerable source, - Func keySelector - ) - { - var keys = new HashSet(); - foreach (var element in source) - { - if (keys.Contains(keySelector(element))) - { - continue; - } - keys.Add(keySelector(element)); - yield return element; - } - } -#endif }