Browse Source
d1138e362
Remove redundant testutil files (MeshCollider)
Pull request description:
The only function in testutil.cpp, `GetTempPath()` simply called `fs::temp_directory_path()` directly. This just tidies things up by removing that redundant function and the file containing it
I can understand wanting a general util file for tests to use, but if there's nothing in it, we might as well remove it, it can always be added back later when it's put to use.
Tree-SHA512: b923f99acf33328743755368a1aa90f5da4a7d5f61b163a4b0b894275c98db80a91edf8f051fbfb4893d970fda5a9078aae78a2672867ff521c4ca4b653c71c0
0.16
Wladimir J. van der Laan
7 years ago
6 changed files with 3 additions and 40 deletions
@ -1,15 +0,0 @@ |
|||||||
// Copyright (c) 2009-2016 The Bitcoin Core developers
|
|
||||||
// Distributed under the MIT software license, see the accompanying
|
|
||||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
||||||
|
|
||||||
#include "testutil.h" |
|
||||||
|
|
||||||
#ifdef WIN32 |
|
||||||
#include <shlobj.h> |
|
||||||
#endif |
|
||||||
|
|
||||||
#include "fs.h" |
|
||||||
|
|
||||||
fs::path GetTempPath() { |
|
||||||
return fs::temp_directory_path(); |
|
||||||
} |
|
@ -1,15 +0,0 @@ |
|||||||
// Copyright (c) 2009-2016 The Bitcoin Core developers
|
|
||||||
// Distributed under the MIT software license, see the accompanying
|
|
||||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Utility functions shared by unit tests |
|
||||||
*/ |
|
||||||
#ifndef BITCOIN_TEST_TESTUTIL_H |
|
||||||
#define BITCOIN_TEST_TESTUTIL_H |
|
||||||
|
|
||||||
#include "fs.h" |
|
||||||
|
|
||||||
fs::path GetTempPath(); |
|
||||||
|
|
||||||
#endif // BITCOIN_TEST_TESTUTIL_H
|
|
Loading…
Reference in new issue