WiimoteEmu: Removed unused Extension encryption key getter.

This commit is contained in:
Jordan Woyak 2025-02-12 21:22:36 -06:00
parent 83d4249838
commit 59d25aceb6
3 changed files with 1 additions and 17 deletions

View File

@ -3,8 +3,6 @@
#pragma once
#include "Core/HW/WiimoteEmu/Extension/Extension.h"
#include <array>
#include <string>
@ -69,10 +67,6 @@ public:
using Extension::Extension;
// TODO: This is public for TAS reasons.
// TODO: TAS handles encryption poorly.
EncryptionKey ext_key;
static constexpr int CALIBRATION_CHECKSUM_BYTES = 2;
#pragma pack(push, 1)
@ -103,6 +97,7 @@ public:
static_assert(0x100 == sizeof(Register));
protected:
EncryptionKey ext_key;
Register m_reg = {};
void Reset() override;

View File

@ -803,14 +803,6 @@ Extension* Wiimote::GetActiveExtension() const
return static_cast<Extension*>(m_attachments->GetAttachmentList()[m_active_extension].get());
}
EncryptionKey Wiimote::GetExtensionEncryptionKey() const
{
if (ExtensionNumber::NONE == GetActiveExtensionNumber())
return {};
return static_cast<EncryptedExtension*>(GetActiveExtension())->ext_key;
}
bool Wiimote::IsSideways() const
{
const bool sideways_modifier_toggle = m_hotkeys->GetSettingsModifier()[0];

View File

@ -246,9 +246,6 @@ private:
Extension* GetActiveExtension() const;
Extension* GetNoneExtension() const;
// TODO: Kill this nonsensical function used for TAS:
EncryptionKey GetExtensionEncryptionKey() const;
struct ReadRequest
{
WiimoteCommon::AddressSpace space;