diff --git a/OpenSim/Region/Framework/Scenes/SceneBase.cs b/OpenSim/Region/Framework/Scenes/SceneBase.cs
index f49366ac89..9487be74d7 100644
--- a/OpenSim/Region/Framework/Scenes/SceneBase.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneBase.cs
@@ -440,15 +440,11 @@ namespace OpenSim.Region.Framework.Scenes
/// null if there is no registered module implementing that interface
public T RequestModuleInterface()
{
- if (ModuleInterfaces.ContainsKey(typeof(T)) && (ModuleInterfaces[typeof(T)].Count > 0))
- {
- m_log.Debug("[XXX] RequestModuleInterface " + typeof(T).ToString() + " size: " + ModuleInterfaces[typeof(T)].Count);
+ if (ModuleInterfaces.ContainsKey(typeof(T)) &&
+ (ModuleInterfaces[typeof(T)].Count > 0))
return (T)ModuleInterfaces[typeof(T)][0];
- }
else
- {
return default(T);
- }
}
///