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

@ -754,7 +754,7 @@ namespace Server.Items
from.SendLocalizedMessage(500446); // That is too far away.
}
private class GroupComparer : IComparer
private class GroupComparer : IComparer<Item>
{
private CheckItemGroup m_Grouper;
@ -763,11 +763,8 @@ namespace Server.Items
m_Grouper = grouper;
}
public int Compare(object x, object y)
public int Compare(Item a, Item b)
{
Item a = (Item)x;
Item b = (Item)y;
return m_Grouper(a, b);
}
}