mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-10 03:27:42 +01:00
WiimoteEmu: Removed unused Extension encryption key getter.
This commit is contained in:
parent
83d4249838
commit
59d25aceb6
@ -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;
|
||||
|
@ -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];
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user