cosmetics on YEngine

This commit is contained in:
UbitUmarov
2025-10-05 03:20:44 +01:00
parent 8b96e73938
commit 886fada445
2 changed files with 49 additions and 65 deletions

View File

@@ -1419,14 +1419,6 @@ namespace OpenSim.Region.ScriptEngine.Yengine
// Output code body.
GenerateStmtBlock(curDeclFunc.body);
/*
if (doheap)
{
PushXMRInst();
ilGen.Emit(curDeclFunc, OpCodes.Ldloc, curHeapSize);
ilGen.Emit(curDeclFunc, OpCodes.Stfld, heapUsedFieldInfo);
}
*/
// If code falls through to this point, means they are missing
// a return statement. And that is legal only if the function
// returns 'void'.
@@ -1595,7 +1587,8 @@ namespace OpenSim.Region.ScriptEngine.Yengine
i++;
}
}
// Copy local and temp values to object array, boxing as needed.
// Copy local and temp values to object array, boxing as needed.
foreach(ScriptMyLocal lcl in activeTemps)
{
ilGen.Emit(curDeclFunc, OpCodes.Dup);