Remove Utils.GetGroup().

This method duplicates Groups.GetGroupByName().
This commit is contained in:
Lucas Nicodemus 2017-12-29 08:45:29 -07:00
parent 3ac52091ea
commit 332e6b2518
7 changed files with 11 additions and 27 deletions

View file

@ -479,23 +479,6 @@ namespace TShockAPI
TShock.TileBans.UpdateBans();
}
/// <summary>
/// Returns a Group from the name of the group
/// </summary>
/// <param name="groupName">string groupName</param>
public Group GetGroup(string groupName)
{
//first attempt on cached groups
for (int i = 0; i < TShock.Groups.groups.Count; i++)
{
if (TShock.Groups.groups[i].Name.Equals(groupName))
{
return TShock.Groups.groups[i];
}
}
return Group.DefaultGroup;
}
/// <summary>
/// Returns an IPv4 address from a DNS query
/// </summary>