mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-09 07:21:04 +02:00
misc: chore: Remove redundant code
This commit is contained in:
@@ -54,7 +54,7 @@ namespace ARMeilleure.Translation
|
||||
public bool HasPtc { get; }
|
||||
public Aarch32Mode Mode { get; }
|
||||
|
||||
private int _ifThenBlockStateIndex = 0;
|
||||
private int _ifThenBlockStateIndex;
|
||||
private Condition[] _ifThenBlockState = [];
|
||||
public bool IsInIfThenBlock => _ifThenBlockStateIndex < _ifThenBlockState.Length;
|
||||
public Condition CurrentIfThenBlockCond => _ifThenBlockState[_ifThenBlockStateIndex];
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace ARMeilleure.Translation.Cache
|
||||
UnwindInfo = unwindInfo;
|
||||
}
|
||||
|
||||
public int CompareTo([AllowNull] CacheEntry other)
|
||||
public int CompareTo(CacheEntry other)
|
||||
{
|
||||
return Offset.CompareTo(other.Offset);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace ARMeilleure.Translation.Cache
|
||||
Size = size;
|
||||
}
|
||||
|
||||
public int CompareTo([AllowNull] MemoryBlock other)
|
||||
public int CompareTo(MemoryBlock other)
|
||||
{
|
||||
return Offset.CompareTo(other.Offset);
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace ARMeilleure.Translation.Cache
|
||||
private static bool _initialized;
|
||||
|
||||
private static readonly List<ReservedRegion> _jitRegions = [];
|
||||
private static int _activeRegionIndex = 0;
|
||||
private static int _activeRegionIndex;
|
||||
|
||||
[SupportedOSPlatform("windows")]
|
||||
[LibraryImport("kernel32.dll", SetLastError = true)]
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace ARMeilleure.Translation.Cache
|
||||
|
||||
_unwindInfo = (UnwindInfo*)(workBufferPtr + _sizeOfRuntimeFunction);
|
||||
|
||||
_getRuntimeFunctionCallback = new GetRuntimeFunctionCallback(FunctionTableHandler);
|
||||
_getRuntimeFunctionCallback = FunctionTableHandler;
|
||||
|
||||
result = RtlInstallFunctionTableCallback(
|
||||
codeCachePtr | 3,
|
||||
@@ -102,10 +102,7 @@ namespace ARMeilleure.Translation.Cache
|
||||
|
||||
bool result;
|
||||
|
||||
unsafe
|
||||
{
|
||||
result = RtlDeleteFunctionTable(codeCachePtr | 3);
|
||||
}
|
||||
result = RtlDeleteFunctionTable(codeCachePtr | 3);
|
||||
|
||||
if (!result)
|
||||
{
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace ARMeilleure.Translation
|
||||
|
||||
private static readonly SortedList<string, DelegateInfo> _delegates;
|
||||
|
||||
unsafe static Delegates()
|
||||
static Delegates()
|
||||
{
|
||||
_delegates = new SortedList<string, DelegateInfo>();
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@ namespace ARMeilleure.Translation
|
||||
|
||||
private const bool Black = true;
|
||||
private const bool Red = false;
|
||||
private IntervalTreeNode<TK, TV> _root = null;
|
||||
private int _count = 0;
|
||||
private IntervalTreeNode<TK, TV> _root;
|
||||
private int _count;
|
||||
|
||||
public int Count => _count;
|
||||
|
||||
@@ -709,9 +709,9 @@ namespace ARMeilleure.Translation
|
||||
class IntervalTreeNode<TK, TV>
|
||||
{
|
||||
public bool Color = true;
|
||||
public IntervalTreeNode<TK, TV> Left = null;
|
||||
public IntervalTreeNode<TK, TV> Right = null;
|
||||
public IntervalTreeNode<TK, TV> Parent = null;
|
||||
public IntervalTreeNode<TK, TV> Left;
|
||||
public IntervalTreeNode<TK, TV> Right;
|
||||
public IntervalTreeNode<TK, TV> Parent;
|
||||
|
||||
/// <summary>
|
||||
/// The start of the range.
|
||||
|
||||
Reference in New Issue
Block a user