mirror of
https://github.com/opensim/opensim.git
synced 2026-07-06 04:30:25 +08:00
* minor: warnings removal
This commit is contained in:
@@ -40,10 +40,10 @@ namespace OpenSim.ApplicationPlugins.ScriptEngine
|
||||
internal class ComponentLoader
|
||||
{
|
||||
internal static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
private ScriptEnginePlugin scriptEnginePlugin;
|
||||
//private ScriptEnginePlugin scriptEnginePlugin;
|
||||
public ComponentLoader(ScriptEnginePlugin sep)
|
||||
{
|
||||
scriptEnginePlugin = sep;
|
||||
//scriptEnginePlugin = sep;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -171,7 +171,7 @@ namespace OpenSim.ApplicationPlugins.ScriptEngine
|
||||
{
|
||||
p.Close();
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
// TODO: Print error to console
|
||||
}
|
||||
|
||||
@@ -46,20 +46,20 @@ namespace OpenSim.ApplicationPlugins.ScriptEngine
|
||||
return;
|
||||
// New region is being created
|
||||
// Create a new script engine
|
||||
try
|
||||
{
|
||||
lock (ComponentRegistry.scriptEngines)
|
||||
{
|
||||
scriptEngine =
|
||||
Activator.CreateInstance(ComponentRegistry.scriptEngines[tempScriptEngineName]) as
|
||||
RegionScriptEngineBase;
|
||||
}
|
||||
scriptEngine.Initialize(scene, source);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
scriptEngine.m_log.Error("[ScriptEngine]: Unable to load engine \"" + tempScriptEngineName + "\": " + ex.ToString());
|
||||
}
|
||||
// try
|
||||
// {
|
||||
// lock (ComponentRegistry.scriptEngines)
|
||||
// {
|
||||
// scriptEngine =
|
||||
// Activator.CreateInstance(ComponentRegistry.scriptEngines[tempScriptEngineName]) as
|
||||
// RegionScriptEngineBase;
|
||||
// }
|
||||
// scriptEngine.Initialize(scene, source);
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// scriptEngine.m_log.Error("[ScriptEngine]: Unable to load engine \"" + tempScriptEngineName + "\": " + ex.ToString());
|
||||
// }
|
||||
}
|
||||
|
||||
public void PostInitialise()
|
||||
|
||||
Reference in New Issue
Block a user