summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeWad.cpp
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2024-05-26 17:17:49 +0100
committerGitHub <noreply@github.com>2024-05-26 17:17:49 +0100
commit14e68a0f4b09a66d1764c19309d4619314378412 (patch)
tree2ef910538aa2527e9df5ae5ae9786a519646a36d /Source/Core/DiscIO/VolumeWad.cpp
parent8167a046ef763d25e6bce91ef07abb99659dc39f (diff)
parent4619db2ae9b72ec2ab4faa32f53b9c985e94ba85 (diff)
Merge pull request #12804 from Tilka/drop_unused_overload
DiscIO: drop unused Volume::CheckContentIntegrity() overload
Diffstat (limited to 'Source/Core/DiscIO/VolumeWad.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeWad.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/Source/Core/DiscIO/VolumeWad.cpp b/Source/Core/DiscIO/VolumeWad.cpp
index 4058497546..bc75e71b88 100644
--- a/Source/Core/DiscIO/VolumeWad.cpp
+++ b/Source/Core/DiscIO/VolumeWad.cpp
@@ -170,15 +170,6 @@ bool VolumeWAD::CheckContentIntegrity(const IOS::ES::Content& content,
return Common::SHA1::CalculateDigest(decrypted_data.data(), content.size) == content.sha1;
}
-bool VolumeWAD::CheckContentIntegrity(const IOS::ES::Content& content, u64 content_offset,
- const IOS::ES::TicketReader& ticket) const
-{
- std::vector<u8> encrypted_data(Common::AlignUp(content.size, 0x40));
- if (!m_reader->Read(content_offset, encrypted_data.size(), encrypted_data.data()))
- return false;
- return CheckContentIntegrity(content, encrypted_data, ticket);
-}
-
IOS::ES::TicketReader VolumeWAD::GetTicketWithFixedCommonKey() const
{
if (!m_ticket.IsValid() || !m_tmd.IsValid())