From 4619db2ae9b72ec2ab4faa32f53b9c985e94ba85 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sat, 25 May 2024 20:13:11 +0100 Subject: DiscIO: drop unused Volume::CheckContentIntegrity() overload The offset-based overload hasn't been in use since f754a1a548f2e599e4cc2d1d799f2d21b520076f. --- Source/Core/DiscIO/VolumeWad.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'Source/Core/DiscIO/VolumeWad.cpp') 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 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()) -- cgit v1.2.3