forked from dolphin-emu/dolphin
IOFile: Get rid of IOFile's ReleaseHandle function
Transfer of handles should be done via std::move.
This commit is contained in:
@@ -947,13 +947,6 @@ bool IOFile::Close()
|
||||
return m_good;
|
||||
}
|
||||
|
||||
std::FILE* IOFile::ReleaseHandle()
|
||||
{
|
||||
std::FILE* const ret = m_file;
|
||||
m_file = nullptr;
|
||||
return ret;
|
||||
}
|
||||
|
||||
void IOFile::SetHandle(std::FILE* file)
|
||||
{
|
||||
Close();
|
||||
|
||||
Reference in New Issue
Block a user