Remove unused functions

This commit is contained in:
libretroadmin 2024-04-18 14:26:17 +02:00
commit 2cc303c8a7
4 changed files with 3 additions and 17 deletions

View file

@ -83,8 +83,9 @@ ALWAYS_INLINE Segment GetSegmentForAddress(VirtualMemoryAddress address)
case 0x06: // KSEG2
case 0x07: // KSEG2
default:
return Segment::KSEG2;
break;
}
return Segment::KSEG2;
}
ALWAYS_INLINE PhysicalMemoryAddress VirtualAddressToPhysical(VirtualMemoryAddress address)
@ -122,4 +123,4 @@ ALWAYS_INLINE void StallUntilGTEComplete()
(g_state.gte_completion_tick > g_state.pending_ticks) ? g_state.gte_completion_tick : g_state.pending_ticks;
}
} // namespace CPU
} // namespace CPU

View file

@ -146,7 +146,6 @@ private:
BitField<u32, u8, 28, 3> priority_offset;
BitField<u32, bool, 31, 1> unused;
u8 GetPriority(Channel channel) const { return ((bits >> (static_cast<u8>(channel) * 4)) & u32(3)); }
bool GetMasterEnable(Channel channel) const
{
return ConvertToBoolUnchecked((bits >> (static_cast<u8>(channel) * 4 + 3)) & u32(1));
@ -182,13 +181,7 @@ private:
return ConvertToBoolUnchecked((bits >> (static_cast<u8>(channel) + 16)) & u32(1));
}
bool GetIRQFlag(Channel channel) const
{
return ConvertToBoolUnchecked((bits >> (static_cast<u8>(channel) + 24)) & u32(1));
}
void SetIRQFlag(Channel channel) { bits |= (u32(1) << (static_cast<u8>(channel) + 24)); }
void ClearIRQFlag(Channel channel) { bits &= ~(u32(1) << (static_cast<u8>(channel) + 24)); }
void UpdateMasterFlag()
{

View file

@ -330,11 +330,6 @@ void WriteRegister(u32 index, u32 value)
}
}
u32* GetRegisterPtr(u32 index)
{
return &REGS.r32[index];
}
ALWAYS_INLINE static void SetOTZ(s32 value)
{
if (value < 0)

View file

@ -14,9 +14,6 @@ void UpdateAspectRatio();
u32 ReadRegister(u32 index);
void WriteRegister(u32 index, u32 value);
// use with care, direct register access
u32* GetRegisterPtr(u32 index);
void ExecuteInstruction(u32 inst_bits);
using InstructionImpl = void (*)(Instruction);