* minor: remove deprecated and unused terrain method from SceneManager

* other minor tidy up
0.6.3-post-fixes
Justin Clarke Casey 2009-02-04 20:37:20 +00:00
parent a1da605706
commit 577064fb9d
2 changed files with 14 additions and 18 deletions

View File

@ -1085,14 +1085,16 @@ namespace OpenSim
/// <summary>
/// Runs the best matching plugin command
///
/// returns true if a match was found, false otherwise.
/// </summary>
/// <param name="cmd"></param>
/// <param name="withParams"></param>
/// <returns>true if a match was found, false otherwise</returns>
public bool RunPluginCommands(string cmd, string[] withParams)
{
ConsolePluginCommand bestMatch = null;
int bestLength = 0;
String cmdWithParams = cmd + " " + String.Join(" ",withParams);
foreach (ConsolePluginCommand cmdinfo in m_PluginCommandInfos)
{
int matchLen = cmdinfo.matchLength(cmdWithParams);
@ -1102,6 +1104,7 @@ namespace OpenSim
bestLength = matchLen;
}
}
if (bestMatch == null) return false;
bestMatch.Run(cmd,withParams);//.Substring(bestLength));
return true;

View File

@ -264,13 +264,6 @@ namespace OpenSim.Region.Environment.Scenes
CurrentOrFirstScene.Heightmap.LoadFromXmlString(mapData);
}
[Obsolete("TODO: Remove this warning by 0.7")]
public bool RunTerrainCmdOnCurrentScene(string[] cmdparams, ref string result)
{
m_log.Warn("DEPRECATED: The terrain engine has been replaced with a new terrain plugin module. Please type 'plugin terrain help' for new commands.");
return false;
}
public void SendCommandToPluginModules(string[] cmdparams)
{
ForEachCurrentScene(delegate(Scene scene) { scene.SendCommandToPlugins(cmdparams); });
@ -377,6 +370,7 @@ namespace OpenSim.Region.Environment.Scenes
return true;
}
}
scene = null;
return false;
}
@ -392,6 +386,7 @@ namespace OpenSim.Region.Environment.Scenes
return true;
}
}
scene = null;
return false;
}
@ -407,6 +402,7 @@ namespace OpenSim.Region.Environment.Scenes
return true;
}
}
scene = null;
return false;
}
@ -642,11 +638,9 @@ namespace OpenSim.Region.Environment.Scenes
decodethread.Start();
}
}
}
public class DecodeThreadContents
{
public Scene sn;
@ -671,6 +665,5 @@ namespace OpenSim.Region.Environment.Scenes
{
thisthread = thr;
}
}
}