From 6f08ef9a2505bf784efdd3ca9419aa2f9bb14c4e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 11 Jan 2017 18:00:22 -0500 Subject: IOFile: Get rid of IOFile's ReleaseHandle function Transfer of handles should be done via std::move. --- Source/Core/Common/FileUtil.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'Source/Core/Common/FileUtil.cpp') diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp index 4094f5edcf..59c7412072 100644 --- a/Source/Core/Common/FileUtil.cpp +++ b/Source/Core/Common/FileUtil.cpp @@ -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(); -- cgit v1.2.3