aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-02-21 17:08:25 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2017-02-21 17:08:37 +0100
commit5f0556d0326bf6f4d34f7e8b9ada7bbb09cb1df2 (patch)
treeb028bb365e8d83b1eb2449468731c4af150a015e /src/test
parent8528d6ac6d51fe1a2d6fc9f0e2591c5503798bd5 (diff)
parent056aba2b4fbdd91a4012aa38743fb8fac56d974b (diff)
Merge #9727: Remove fallbacks for boost_filesystem < v3
056aba2 Remove fallbacks for boost_filesystem < v3 (Wladimir J. van der Laan)
Diffstat (limited to 'src/test')
-rw-r--r--src/test/testutil.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/testutil.cpp b/src/test/testutil.cpp
index 304cffb798..e6d8622979 100644
--- a/src/test/testutil.cpp
+++ b/src/test/testutil.cpp
@@ -11,23 +11,5 @@
#include <boost/filesystem.hpp>
boost::filesystem::path GetTempPath() {
-#if BOOST_FILESYSTEM_VERSION == 3
return boost::filesystem::temp_directory_path();
-#else
- // TODO: remove when we don't support filesystem v2 anymore
- boost::filesystem::path path;
-#ifdef WIN32
- char pszPath[MAX_PATH] = "";
-
- if (GetTempPathA(MAX_PATH, pszPath))
- path = boost::filesystem::path(pszPath);
-#else
- path = boost::filesystem::path("/tmp");
-#endif
- if (path.empty() || !boost::filesystem::is_directory(path)) {
- LogPrintf("GetTempPath(): failed to find temp path\n");
- return boost::filesystem::path("");
- }
- return path;
-#endif
}