2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

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

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());