Skip to content

Commit fa5844f

Browse files
author
MarcoFalke
committed
Remove unused g++-10 workaround
This reverts d4999d4
1 parent fa8409e commit fa5844f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/util/fs_helpers.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -249,20 +249,9 @@ fs::path GetSpecialFolderPath(int nFolder, bool fCreate)
249249

250250
bool RenameOver(fs::path src, fs::path dest)
251251
{
252-
#ifdef __MINGW64__
253-
// This is a workaround for a bug in libstdc++ which
254-
// implements fs::rename with _wrename function.
255-
// This bug has been fixed in upstream:
256-
// - GCC 10.3: 8dd1c1085587c9f8a21bb5e588dfe1e8cdbba79e
257-
// - GCC 11.1: 1dfd95f0a0ca1d9e6cbc00e6cbfd1fa20a98f312
258-
// For more details see the commits mentioned above.
259-
return MoveFileExW(src.wstring().c_str(), dest.wstring().c_str(),
260-
MOVEFILE_REPLACE_EXISTING) != 0;
261-
#else
262252
std::error_code error;
263253
fs::rename(src, dest, error);
264254
return !error;
265-
#endif
266255
}
267256

268257
/**

0 commit comments

Comments
 (0)