From 5cc89b9e3929de5a85f6071d8b54861cddf9539c Mon Sep 17 00:00:00 2001
From: Michael Krisper <michael.krisper@tugraz.at>
Date: Mon, 13 Jun 2016 16:48:43 +0200
Subject: [PATCH] removed equality members from delaunay map

---
 VectoCore/VectoCore/Utils/DelaunayMap.cs | 34 ++----------------------
 1 file changed, 2 insertions(+), 32 deletions(-)

diff --git a/VectoCore/VectoCore/Utils/DelaunayMap.cs b/VectoCore/VectoCore/Utils/DelaunayMap.cs
index 6ff5c97ecf..852d9571a2 100644
--- a/VectoCore/VectoCore/Utils/DelaunayMap.cs
+++ b/VectoCore/VectoCore/Utils/DelaunayMap.cs
@@ -210,7 +210,8 @@ namespace TUGraz.VectoCore.Utils
 		/// </summary>
 		/// <param name="x"></param>
 		/// <param name="y"></param>
-		/// <returns>a double value if interpolation is successfull, null if interpolation is not sucessfull.</returns>
+		/// <returns>a value if interpolation is successfull, 
+		///          null if interpolation has failed.</returns>
 		public double? Interpolate(double x, double y)
 		{
 			var tr = _triangles.Find(triangle => triangle.IsInside(x, y, exact: true)) ??
@@ -288,36 +289,5 @@ namespace TUGraz.VectoCore.Utils
 			var z = edge.P1.Z + edge.Vector.Z * (ap.Dot(ab) / ab.Dot(ab));
 			return z;
 		}
-
-		#region Equality members
-
-		private bool Equals(DelaunayMap other)
-		{
-			return Points.SequenceEqual(other.Points) && _triangles.SequenceEqual(other._triangles);
-		}
-
-		public override bool Equals(object obj)
-		{
-			if (ReferenceEquals(null, obj)) {
-				return false;
-			}
-			if (ReferenceEquals(this, obj)) {
-				return true;
-			}
-			if (obj.GetType() != GetType()) {
-				return false;
-			}
-			return Equals((DelaunayMap)obj);
-		}
-
-		public override int GetHashCode()
-		{
-			unchecked {
-				return ((Points != null ? Points.GetHashCode() : 0) * 397) ^
-						(_triangles != null ? _triangles.GetHashCode() : 0);
-			}
-		}
-
-		#endregion
 	}
 }
\ No newline at end of file
-- 
GitLab