Removing legacy path from nano::working_path as versions that use this path are no longer supported in the upgrade path. (#3414)
This commit is contained in:
parent
298d38cba4
commit
6410c5241a
2 changed files with 6 additions and 34 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
static std::vector<boost::filesystem::path> all_unique_paths;
|
||||
|
||||
boost::filesystem::path nano::working_path (bool legacy)
|
||||
boost::filesystem::path nano::working_path ()
|
||||
{
|
||||
static nano::network_constants network_constants;
|
||||
auto result (nano::app_path ());
|
||||
|
@ -16,44 +16,16 @@ boost::filesystem::path nano::working_path (bool legacy)
|
|||
release_assert (false);
|
||||
break;
|
||||
case nano::networks::nano_dev_network:
|
||||
if (!legacy)
|
||||
{
|
||||
result /= "NanoDev";
|
||||
}
|
||||
else
|
||||
{
|
||||
result /= "RaiBlocksDev";
|
||||
}
|
||||
result /= "NanoDev";
|
||||
break;
|
||||
case nano::networks::nano_beta_network:
|
||||
if (!legacy)
|
||||
{
|
||||
result /= "NanoBeta";
|
||||
}
|
||||
else
|
||||
{
|
||||
result /= "RaiBlocksBeta";
|
||||
}
|
||||
result /= "NanoBeta";
|
||||
break;
|
||||
case nano::networks::nano_live_network:
|
||||
if (!legacy)
|
||||
{
|
||||
result /= "Nano";
|
||||
}
|
||||
else
|
||||
{
|
||||
result /= "RaiBlocks";
|
||||
}
|
||||
result /= "Nano";
|
||||
break;
|
||||
case nano::networks::nano_test_network:
|
||||
if (!legacy)
|
||||
{
|
||||
result /= "NanoTest";
|
||||
}
|
||||
else
|
||||
{
|
||||
result /= "RaiBlocksTest";
|
||||
}
|
||||
result /= "NanoTest";
|
||||
break;
|
||||
}
|
||||
return result;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
namespace nano
|
||||
{
|
||||
// OS-specific way of finding a path to a home directory.
|
||||
boost::filesystem::path working_path (bool = false);
|
||||
boost::filesystem::path working_path ();
|
||||
// Get a unique path within the home directory, used for testing.
|
||||
// Any directories created at this location will be removed when a test finishes.
|
||||
boost::filesystem::path unique_path ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue