mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
Remove a redundant method body
This commit is contained in:
@@ -597,27 +597,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
|||||||
|
|
||||||
public GroupRecord GetGroupRecord(string name)
|
public GroupRecord GetGroupRecord(string name)
|
||||||
{
|
{
|
||||||
if (m_debugEnabled)
|
return m_groupData.GetGroupRecord(UUID.Zero, UUID.Zero, name);
|
||||||
m_log.DebugFormat("[GROUPS]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name);
|
|
||||||
|
|
||||||
// XXX: Two call implementation. This could be done in a single call if the server itself were to
|
|
||||||
// implement the code below.
|
|
||||||
|
|
||||||
List<DirGroupsReplyData> groups = m_groupData.FindGroups(null, name);
|
|
||||||
|
|
||||||
DirGroupsReplyData? foundGroup = null;
|
|
||||||
|
|
||||||
foreach (DirGroupsReplyData group in groups)
|
|
||||||
{
|
|
||||||
// We must have an exact match - I believe FindGroups will return partial matches
|
|
||||||
if (group.groupName == name)
|
|
||||||
foundGroup = group;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (null == foundGroup)
|
|
||||||
return null;
|
|
||||||
|
|
||||||
return GetGroupRecord(((DirGroupsReplyData)foundGroup).groupID);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ActivateGroup(IClientAPI remoteClient, UUID groupID)
|
public void ActivateGroup(IClientAPI remoteClient, UUID groupID)
|
||||||
|
|||||||
Reference in New Issue
Block a user