very useless changes

This commit is contained in:
UbitUmarov
2025-06-25 02:22:28 +01:00
parent f1d84b7866
commit 0d71b6d871
78 changed files with 123 additions and 223 deletions

View File

@@ -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, "*", "!=")

View File

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

View File

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

View File

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

View File

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

View File

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