diff --git a/ICD.Common.Utils/MathUtils.cs b/ICD.Common.Utils/MathUtils.cs index 20bb2e8..8ee0ea5 100644 --- a/ICD.Common.Utils/MathUtils.cs +++ b/ICD.Common.Utils/MathUtils.cs @@ -202,19 +202,5 @@ namespace ICD.Common.Utils return nearest.Aggregate((x, y) => Math.Abs(x - number) < Math.Abs(y - number) ? x : y); } - - /// - /// Gets a new, unique id given a sequence of existing ids. - /// - /// - /// - public static int GetNewId(IEnumerable existingIds) - { - if (existingIds == null) - throw new ArgumentNullException("existingIds"); - - IcdHashSet existing = existingIds.ToHashSet(); - return Enumerable.Range(1, int.MaxValue).First(i => !existing.Contains(i)); - } } }