IOS: Remove unnecessary and unused PrepareForState

PrepareForState is now unnecessary with the new implementation of
HostFileSystem::DoState, which does what the old implementation
(CWII_IPC_HLE_Device_FileIO::PrepareForState) used to do.
This commit is contained in:
Léo Lam 2021-02-13 16:56:29 +01:00
parent 389b01dae9
commit 6e8881a426
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
2 changed files with 0 additions and 10 deletions

View File

@ -178,8 +178,6 @@ public:
Device(Kernel& ios, const std::string& device_name, DeviceType type = DeviceType::Static);
virtual ~Device() = default;
// Release any resources which might interfere with savestating.
virtual void PrepareForState(PointerWrap::Mode mode) {}
virtual void DoState(PointerWrap& p);
void DoStateShared(PointerWrap& p);

View File

@ -746,14 +746,6 @@ void Kernel::DoState(PointerWrap& p)
if (m_title_id == Titles::MIOS)
return;
// We need to make sure all file handles are closed so IOS::HLE::FSDevice::DoState can
// successfully save or re-create /tmp
for (auto& descriptor : m_fdmap)
{
if (descriptor)
descriptor->PrepareForState(p.GetMode());
}
for (const auto& entry : m_device_map)
entry.second->DoState(p);