* 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 class ComponentLoader
{ {
internal static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); internal static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private ScriptEnginePlugin scriptEnginePlugin; //private ScriptEnginePlugin scriptEnginePlugin;
public ComponentLoader(ScriptEnginePlugin sep) public ComponentLoader(ScriptEnginePlugin sep)
{ {
scriptEnginePlugin = sep; //scriptEnginePlugin = sep;
} }
/// <summary> /// <summary>

View File

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

View File

@ -46,20 +46,20 @@ namespace OpenSim.ApplicationPlugins.ScriptEngine
return; return;
// New region is being created // New region is being created
// Create a new script engine // Create a new script engine
try // try
{ // {
lock (ComponentRegistry.scriptEngines) // lock (ComponentRegistry.scriptEngines)
{ // {
scriptEngine = // scriptEngine =
Activator.CreateInstance(ComponentRegistry.scriptEngines[tempScriptEngineName]) as // Activator.CreateInstance(ComponentRegistry.scriptEngines[tempScriptEngineName]) as
RegionScriptEngineBase; // RegionScriptEngineBase;
} // }
scriptEngine.Initialize(scene, source); // scriptEngine.Initialize(scene, source);
} // }
catch (Exception ex) // catch (Exception ex)
{ // {
scriptEngine.m_log.Error("[ScriptEngine]: Unable to load engine \"" + tempScriptEngineName + "\": " + ex.ToString()); // scriptEngine.m_log.Error("[ScriptEngine]: Unable to load engine \"" + tempScriptEngineName + "\": " + ex.ToString());
} // }
} }
public void PostInitialise() public void PostInitialise()

View File

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

View File

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

View File

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