* minor: warnings removal

0.6.0-stable
Justin Clarke Casey 2008-09-21 20:56:39 +00:00
parent 37da083de5
commit 451bd5a0ca
6 changed files with 20 additions and 20 deletions

View File

@ -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>

View File

@ -171,7 +171,7 @@ namespace OpenSim.ApplicationPlugins.ScriptEngine
{
p.Close();
}
catch (Exception ex)
catch (Exception)
{
// TODO: Print error to console
}

View File

@ -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()

View File

@ -145,7 +145,7 @@ namespace OpenSim.Data.Tests
[Test]
public void T300_NoTerrain()
{
double[,] t1 = db.LoadTerrain(region1);
db.LoadTerrain(region1);
}
[Test]

View File

@ -1373,7 +1373,7 @@ namespace OpenSim.Region.ScriptEngine.Common
value = int.Parse(v, System.Globalization.NumberStyles.Integer);
}
}
catch (OverflowException oe)
catch (OverflowException)
{
value = -1;
}

View File

@ -1455,7 +1455,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
value = int.Parse(v,
System.Globalization.NumberStyles.Integer);
}
catch (OverflowException oe)
catch (OverflowException)
{
value = -1;
}