misc: chore: Remove redundant code

This commit is contained in:
KeatonTheBot
2025-03-11 16:45:41 -05:00
parent 340ec79e9f
commit 05a88ccc94
109 changed files with 271 additions and 412 deletions
@@ -4,7 +4,8 @@ using System.Runtime.Versioning;
namespace Ryujinx.Cpu.AppleHv
{
[SupportedOSPlatform("macos")]
class HvMemoryBlockAllocator : PrivateMemoryAllocatorImpl<HvMemoryBlockAllocator.Block>
class HvMemoryBlockAllocator(HvIpaAllocator ipaAllocator, ulong blockAlignment)
: PrivateMemoryAllocatorImpl<HvMemoryBlockAllocator.Block>(blockAlignment, MemoryAllocationFlags.None)
{
public class Block : PrivateMemoryAllocator.Block
{
@@ -36,13 +37,6 @@ namespace Ryujinx.Cpu.AppleHv
}
}
private readonly HvIpaAllocator _ipaAllocator;
public HvMemoryBlockAllocator(HvIpaAllocator ipaAllocator, ulong blockAlignment) : base(blockAlignment, MemoryAllocationFlags.None)
{
_ipaAllocator = ipaAllocator;
}
public HvMemoryBlockAllocation Allocate(ulong size, ulong alignment)
{
var allocation = Allocate(size, alignment, CreateBlock);
@@ -52,7 +46,7 @@ namespace Ryujinx.Cpu.AppleHv
private Block CreateBlock(MemoryBlock memory, ulong size)
{
return new Block(_ipaAllocator, memory, size);
return new Block(ipaAllocator, memory, size);
}
}
}
@@ -5,7 +5,6 @@ using Ryujinx.Memory.Tracking;
using System;
using System.Buffers;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
+1 -1
View File
@@ -8,7 +8,7 @@ namespace Ryujinx.Cpu.AppleHv
{
private const ulong InterruptIntervalNs = 16 * 1000000; // 16 ms
private static ulong _interruptTimeDeltaTicks = 0;
private static ulong _interruptTimeDeltaTicks;
public readonly ulong Handle;
public readonly HvVcpuExit* ExitInfo;