Removes old comparable/comparers. (#31)
This commit is contained in:
parent
513e54f70e
commit
a45094f2dc
23 changed files with 95 additions and 249 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue