yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

partition_data_manager: Remove unused std::map instance within DecryptPackage2()

Aside from emplacing elements into the map, the map itself is never
actually queried for contained data.
This commit is contained in:
Lioncash 2018-10-13 09:27:07 -04:00
parent e0c76226ad
commit 781fd7983c
1 changed files with 0 additions and 2 deletions

View File

@ -483,14 +483,12 @@ void PartitionDataManager::DecryptPackage2(const std::array<Key128, 0x20>& packa
if (ini.magic != Common::MakeMagic('I', 'N', 'I', '1'))
return;
std::map<u64, KIPHeader> kips{};
u64 offset = sizeof(INIHeader);
for (size_t i = 0; i < ini.process_count; ++i) {
KIPHeader kip;
std::memcpy(&kip, c.data() + offset, sizeof(KIPHeader));
if (kip.magic != Common::MakeMagic('K', 'I', 'P', '1'))
return;
kips.emplace(offset, kip);
const auto name =
Common::StringFromFixedZeroTerminatedBuffer(kip.name.data(), kip.name.size());