Remove unused virtEnd variable in FlatMemoryManager::{Read, Write}

This commit is contained in:
Billy Laws 2021-10-30 21:19:17 +01:00 committed by PixelyIon
parent 60fbfad4bc
commit d2d181725f

View File

@ -238,8 +238,6 @@ namespace skyline {
std::scoped_lock lock(this->blockMutex); std::scoped_lock lock(this->blockMutex);
VaType virtEnd{virt + size};
auto successor{std::upper_bound(this->blocks.begin(), this->blocks.end(), virt, [] (auto virt, const auto &block) { auto successor{std::upper_bound(this->blocks.begin(), this->blocks.end(), virt, [] (auto virt, const auto &block) {
return virt < block.virt; return virt < block.virt;
})}; })};
@ -279,8 +277,6 @@ namespace skyline {
std::scoped_lock lock(this->blockMutex); std::scoped_lock lock(this->blockMutex);
VaType virtEnd{virt + size};
auto successor{std::upper_bound(this->blocks.begin(), this->blocks.end(), virt, [] (auto virt, const auto &block) { auto successor{std::upper_bound(this->blocks.begin(), this->blocks.end(), virt, [] (auto virt, const auto &block) {
return virt < block.virt; return virt < block.virt;
})}; })};