Fix some compiler warnings. Minor formatting cleanup.
parent
95d53d48d4
commit
163c1026d1
|
@ -293,7 +293,7 @@ namespace OpenSim.Framework.Console
|
|||
if (s == String.Empty)
|
||||
{
|
||||
CommandInfo ci = (CommandInfo)current[String.Empty];
|
||||
if (ci.fn.Count != null)
|
||||
if (ci.fn.Count != 0)
|
||||
addcr = true;
|
||||
}
|
||||
else
|
||||
|
@ -355,7 +355,7 @@ namespace OpenSim.Framework.Console
|
|||
if (current.ContainsKey(String.Empty))
|
||||
{
|
||||
CommandInfo ci = (CommandInfo)current[String.Empty];
|
||||
if (ci.fn.Count == null)
|
||||
if (ci.fn.Count == 0)
|
||||
return new string[0];
|
||||
foreach (CommandDelegate fn in ci.fn)
|
||||
fn(ci.module, result);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -131,6 +131,5 @@ namespace OpenSim.ScriptEngine.Shared
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue