* minor: warnings removal
parent
37da083de5
commit
451bd5a0ca
|
@ -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()
|
||||
|
|
|
@ -145,7 +145,7 @@ namespace OpenSim.Data.Tests
|
|||
[Test]
|
||||
public void T300_NoTerrain()
|
||||
{
|
||||
double[,] t1 = db.LoadTerrain(region1);
|
||||
db.LoadTerrain(region1);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
@ -1373,7 +1373,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
value = int.Parse(v, System.Globalization.NumberStyles.Integer);
|
||||
}
|
||||
}
|
||||
catch (OverflowException oe)
|
||||
catch (OverflowException)
|
||||
{
|
||||
value = -1;
|
||||
}
|
||||
|
|
|
@ -1455,7 +1455,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
|||
value = int.Parse(v,
|
||||
System.Globalization.NumberStyles.Integer);
|
||||
}
|
||||
catch (OverflowException oe)
|
||||
catch (OverflowException)
|
||||
{
|
||||
value = -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue