diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-02-09 09:16:13 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-02-10 12:32:52 +0100 |
commit | 056aba2b4fbdd91a4012aa38743fb8fac56d974b (patch) | |
tree | 0bbc0c040187c2b80cd961d05e09ba39179b8732 /src/test | |
parent | 36f9d3ae6da48325b0a37ad7fd1abe263a0f2c9a (diff) |
Remove fallbacks for boost_filesystem < v3
Minimum boost version was bumped to 1.47.0 in #8920, which
means the configure step won't even pass with older boost.
This version has boost filesystem v3, which means the
(crappy) fallbacks for older versions can go.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/testutil.cpp | 18 |
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 } |