diff options
author | Melanie | 2010-03-29 19:50:24 +0100 |
---|---|---|
committer | Melanie | 2010-03-29 19:50:24 +0100 |
commit | e7e56e0143e8afce8a7aaa44cfe848b2017bd5e4 (patch) | |
tree | 9820c951756d3cefd083a4103a1f46a60ae32a54 | |
parent | Stab one bug. When joining an estate with a new region, make sure it's also (diff) | |
download | opensim-SC_OLD-e7e56e0143e8afce8a7aaa44cfe848b2017bd5e4.zip opensim-SC_OLD-e7e56e0143e8afce8a7aaa44cfe848b2017bd5e4.tar.gz opensim-SC_OLD-e7e56e0143e8afce8a7aaa44cfe848b2017bd5e4.tar.bz2 opensim-SC_OLD-e7e56e0143e8afce8a7aaa44cfe848b2017bd5e4.tar.xz |
Remove a redundant method body
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs index eb630de..6282272 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs | |||
@@ -597,27 +597,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
597 | 597 | ||
598 | public GroupRecord GetGroupRecord(string name) | 598 | public GroupRecord GetGroupRecord(string name) |
599 | { | 599 | { |
600 | if (m_debugEnabled) | 600 | return m_groupData.GetGroupRecord(UUID.Zero, UUID.Zero, name); |
601 | m_log.DebugFormat("[GROUPS]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); | ||
602 | |||
603 | // XXX: Two call implementation. This could be done in a single call if the server itself were to | ||
604 | // implement the code below. | ||
605 | |||
606 | List<DirGroupsReplyData> groups = m_groupData.FindGroups(null, name); | ||
607 | |||
608 | DirGroupsReplyData? foundGroup = null; | ||
609 | |||
610 | foreach (DirGroupsReplyData group in groups) | ||
611 | { | ||
612 | // We must have an exact match - I believe FindGroups will return partial matches | ||
613 | if (group.groupName == name) | ||
614 | foundGroup = group; | ||
615 | } | ||
616 | |||
617 | if (null == foundGroup) | ||
618 | return null; | ||
619 | |||
620 | return GetGroupRecord(((DirGroupsReplyData)foundGroup).groupID); | ||
621 | } | 601 | } |
622 | 602 | ||
623 | public void ActivateGroup(IClientAPI remoteClient, UUID groupID) | 603 | public void ActivateGroup(IClientAPI remoteClient, UUID groupID) |