From 9e2fc7f4ddba14b1e7123d1654b385b21c71c744 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Tue, 28 Oct 2025 22:45:21 -0500 Subject: Common/IOFile: Remove the `Duplicate` function. The duplicate handles shared a read/write position making them effectively not thread-safe. --- Source/Core/Common/IOFile.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'Source/Core/Common/IOFile.cpp') diff --git a/Source/Core/Common/IOFile.cpp b/Source/Core/Common/IOFile.cpp index cc22979bbe..cf7762ea68 100644 --- a/Source/Core/Common/IOFile.cpp +++ b/Source/Core/Common/IOFile.cpp @@ -101,15 +101,6 @@ bool IOFile::Close() return m_good; } -IOFile IOFile::Duplicate(const char openmode[]) const -{ -#ifdef _WIN32 - return IOFile(_fdopen(_dup(_fileno(m_file)), openmode)); -#else // _WIN32 - return IOFile(fdopen(dup(fileno(m_file)), openmode)); -#endif // _WIN32 -} - void IOFile::SetHandle(std::FILE* file) { Close(); -- cgit v1.2.3