Remove Utils.GetGroup().
This method duplicates Groups.GetGroupByName().
This commit is contained in:
parent
3ac52091ea
commit
332e6b2518
7 changed files with 11 additions and 27 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue