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

@ -22,7 +22,7 @@ using System;
namespace Server
{
public struct Serial : IComparable, IComparable<Serial>, IComparable<uint>
public struct Serial : IComparable<Serial>, IComparable<uint>
{
public static readonly Serial MinusOne = new Serial(0xFFFFFFFF);
public static readonly Serial Zero = new Serial(0);
@ -72,17 +72,12 @@ namespace Server
{
return Value.GetHashCode();
}
public int CompareTo(Serial other)
{
return Value.CompareTo(other.Value);
}
public int CompareTo(object obj)
{
return Value.CompareTo(obj);
}
public int CompareTo(uint other)
{
return Value.CompareTo(other);
@ -148,4 +143,4 @@ namespace Server
return new Serial(a);
}
}
}
}