mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
very useless changes
This commit is contained in:
@@ -31,6 +31,7 @@ using System.Reflection;
|
||||
using System.Reflection.Emit;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using OpenSim.Region.ScriptEngine.Shared;
|
||||
|
||||
using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat;
|
||||
@@ -43,7 +44,6 @@ using LSL_Vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3;
|
||||
|
||||
namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
{
|
||||
|
||||
/**
|
||||
* @brief This class is used to catalog the code emit routines based on a key string
|
||||
* The key string has the two types (eg, "integer", "rotation") and the operator (eg, "*", "!=")
|
||||
|
||||
@@ -39,10 +39,8 @@ using LSL_Vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3;
|
||||
|
||||
namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
{
|
||||
|
||||
public class ScriptConst
|
||||
{
|
||||
|
||||
public static Dictionary<string, ScriptConst> scriptConstants = Init();
|
||||
|
||||
/**
|
||||
@@ -225,7 +223,6 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
CompValu z = new CompValuFloat(new TokenTypeFloat(null), v.z);
|
||||
cv = new CompValuVec(new TokenTypeVec(null), x, y, z);
|
||||
}
|
||||
|
||||
else if (value is OpenMetaverse.Quaternion or)
|
||||
{
|
||||
CompValu x = new CompValuFloat(new TokenTypeFloat(null), or.X);
|
||||
|
||||
@@ -4207,7 +4207,6 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
TokenList values = null;
|
||||
while(true)
|
||||
{
|
||||
|
||||
// open brace means start a (sub-)list
|
||||
if(token is TokenKwBrcOpen)
|
||||
{
|
||||
|
||||
@@ -46,7 +46,6 @@ using LSL_Vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3;
|
||||
|
||||
namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
{
|
||||
|
||||
public class TypeCast
|
||||
{
|
||||
private delegate void CastDelegate(IScriptCodeGen scg, Token errorAt);
|
||||
|
||||
@@ -1122,12 +1122,12 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
{
|
||||
XMRInstance instance = GetInstance(itemID);
|
||||
if(instance == null)
|
||||
return String.Empty;
|
||||
return string.Empty;
|
||||
|
||||
TraceCalls("[YEngine]: YEngine.GetXMLState({0})", itemID.ToString());
|
||||
|
||||
if(!instance.m_HasRun)
|
||||
return String.Empty;
|
||||
return string.Empty;
|
||||
|
||||
XmlDocument doc = new();
|
||||
|
||||
@@ -1221,7 +1221,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public bool PostScriptEvent(UUID itemID, string name, Object[] p)
|
||||
public bool PostScriptEvent(UUID itemID, string name, object[] p)
|
||||
{
|
||||
if(!m_Enabled)
|
||||
return false;
|
||||
@@ -1232,7 +1232,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public bool PostObjectEvent(UUID itemID, string name, Object[] p)
|
||||
public bool PostObjectEvent(UUID itemID, string name, object[] p)
|
||||
{
|
||||
if(!m_Enabled)
|
||||
return false;
|
||||
|
||||
@@ -395,6 +395,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||
m_InstEHEvent++;
|
||||
e = StartEventHandler(evc, evt.Params);
|
||||
}
|
||||
|
||||
//m_RunOnePhase = "done running";
|
||||
m_CPUTime += Util.GetTimeStampMS() - m_SliceStart;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user