mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Fix some compiler warnings. Minor formatting cleanup.
This commit is contained in:
@@ -39,7 +39,6 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
/// </summary>
|
||||
public class MaintenanceThread
|
||||
{
|
||||
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
//public ScriptEngine m_ScriptEngine;
|
||||
|
||||
@@ -505,7 +505,6 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Internal functions to keep track of script
|
||||
@@ -591,7 +590,6 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
StartScript(localID, itemID, script, id.StartParam, false);
|
||||
}
|
||||
|
||||
|
||||
#region Script serialization/deserialization
|
||||
|
||||
public void GetSerializedScript(uint localID, UUID itemID)
|
||||
@@ -623,9 +621,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine
|
||||
|
||||
public int GetStartParameter(UUID itemID)
|
||||
{
|
||||
|
||||
uint localID = GetLocalID(itemID);
|
||||
|
||||
InstanceData id = GetScript(localID, itemID);
|
||||
|
||||
if (id == null)
|
||||
|
||||
@@ -361,12 +361,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
public LSL_Integer llAbs(int i)
|
||||
{
|
||||
// changed to replicate LSL behaviour whereby minimum int value is returned untouched.
|
||||
// changed to replicate LSL behaviour whereby minimum int value is returned untouched.
|
||||
m_host.AddScriptLPS(1);
|
||||
if(i == Int32.MinValue)
|
||||
return i;
|
||||
if (i == Int32.MinValue)
|
||||
return i;
|
||||
else
|
||||
return (int)Math.Abs(i);
|
||||
return (int)Math.Abs(i);
|
||||
}
|
||||
|
||||
public LSL_Float llFabs(double f)
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine.Tests
|
||||
|
||||
public static Random random;
|
||||
public TestClient testclient;
|
||||
TestCommunicationsManager cm;
|
||||
//TestCommunicationsManager cm;
|
||||
|
||||
[TestFixtureSetUp]
|
||||
public void Init()
|
||||
@@ -65,4 +65,4 @@ namespace OpenSim.Region.ScriptEngine.XEngine.Tests
|
||||
xengine.PostInitialise();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user