Removes old comparable/comparers. (#31)

This commit is contained in:
Kamron Batman 2019-03-11 15:35:04 -07:00 • committed by GitHub
parent 513e54f70e
commit a45094f2dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 95 additions and 249 deletions

View file

@ -84,16 +84,6 @@ namespace Server
return v;
}
public int CompareTo(object other)
{
if (other is Point2D d)
return CompareTo(d);
if (other == null)
return -1;
throw new ArgumentException();
}
public override bool Equals(object o)
{
return o is IPoint2D p && m_X == p.X && m_Y == p.Y;
@ -301,16 +291,6 @@ namespace Server
return v;
}
public int CompareTo(object other)
{
if (other is Point3D d)
return CompareTo(d);
if (other == null)
return -1;
throw new ArgumentException();
}
}
[NoSort]