Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/PipingSoilProfileReaderTest.cs =================================================================== diff -u -r41d06d91a2ef710ad07b3f474f190400751e09b8 -rf69d756f50ae1464a1a11f0780b6d6aa646f3114 --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/PipingSoilProfileReaderTest.cs (.../PipingSoilProfileReaderTest.cs) (revision 41d06d91a2ef710ad07b3f474f190400751e09b8) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/PipingSoilProfileReaderTest.cs (.../PipingSoilProfileReaderTest.cs) (revision f69d756f50ae1464a1a11f0780b6d6aa646f3114) @@ -1,5 +1,4 @@ using System; -using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; @@ -503,34 +502,4 @@ } } } - - internal class DoubleWithToleranceComparer : IComparer - { - private double tolerance; - - public DoubleWithToleranceComparer(double tolerance) - { - this.tolerance = tolerance; - } - - public int Compare(double firstDouble, double secondDouble) - { - var diff = firstDouble - secondDouble; - - var tolerable = Math.Abs(diff) < tolerance; - - var nonTolerableDiff = !tolerable && diff < 0 ? -1 : 1; - - return tolerable ? 0 : nonTolerableDiff; - } - - public int Compare(object x, object y) - { - if (!(x is double) || !(y is double)) - { - throw new NotSupportedException(string.Format("Cannot compare objects other than {0} with this comparer.", typeof(Point2D))); - } - return Compare((double)x, (double)y); - } - } } \ No newline at end of file