diff --git a/nano/core_test/block_store.cpp b/nano/core_test/block_store.cpp index 48c38464c2..fd9a99e7d2 100644 --- a/nano/core_test/block_store.cpp +++ b/nano/core_test/block_store.cpp @@ -686,7 +686,6 @@ TEST (mdb_block_store, bad_path) return; } ASSERT_TRUE (false); - } TEST (block_store, DISABLED_already_open) // File can be shared diff --git a/nano/lib/config.hpp b/nano/lib/config.hpp index 3701f2029e..fd7eff2603 100644 --- a/nano/lib/config.hpp +++ b/nano/lib/config.hpp @@ -12,14 +12,6 @@ using namespace std::chrono_literals; -namespace boost -{ -namespace filesystem -{ - class path; -} -} - #define xstr(a) ver_str (a) #define ver_str(a) #a diff --git a/nano/lib/rpcconfig.hpp b/nano/lib/rpcconfig.hpp index b05d3c05c0..d07b2ead3a 100644 --- a/nano/lib/rpcconfig.hpp +++ b/nano/lib/rpcconfig.hpp @@ -10,14 +10,6 @@ #include #include -namespace boost -{ -namespace filesystem -{ - class path; -} -} - namespace nano { class tomlconfig; diff --git a/nano/lib/utility.hpp b/nano/lib/utility.hpp index 4fdda6fc84..7155ca4760 100644 --- a/nano/lib/utility.hpp +++ b/nano/lib/utility.hpp @@ -16,11 +16,6 @@ namespace boost { -namespace filesystem -{ - class path; -} - namespace system { class error_code; diff --git a/nano/nano_node/daemon.hpp b/nano/nano_node/daemon.hpp index 41a4c01de9..d56a26c907 100644 --- a/nano/nano_node/daemon.hpp +++ b/nano/nano_node/daemon.hpp @@ -1,11 +1,3 @@ -namespace boost -{ -namespace filesystem -{ - class path; -} -} - namespace nano { class node_flags; diff --git a/nano/node/ipc/ipc_access_config.hpp b/nano/node/ipc/ipc_access_config.hpp index 17575f23e6..7098baf773 100644 --- a/nano/node/ipc/ipc_access_config.hpp +++ b/nano/node/ipc/ipc_access_config.hpp @@ -8,13 +8,6 @@ #include #include -namespace boost -{ -namespace filesystem -{ - class path; -} -} namespace cpptoml { class table; diff --git a/nano/node/logging.hpp b/nano/node/logging.hpp index b36d61fa64..e8f206a51e 100644 --- a/nano/node/logging.hpp +++ b/nano/node/logging.hpp @@ -24,10 +24,6 @@ namespace sinks BOOST_LOG_CLOSE_NAMESPACE -namespace filesystem -{ - class path; -} } namespace nano diff --git a/nano/node/node_rpc_config.hpp b/nano/node/node_rpc_config.hpp index e5dad70167..5f23574686 100644 --- a/nano/node/node_rpc_config.hpp +++ b/nano/node/node_rpc_config.hpp @@ -6,14 +6,6 @@ #include -namespace boost -{ -namespace filesystem -{ - class path; -} -} - namespace nano { class tomlconfig; diff --git a/nano/secure/utility.cpp b/nano/secure/utility.cpp index 9ba8202473..19c5836294 100644 --- a/nano/secure/utility.cpp +++ b/nano/secure/utility.cpp @@ -45,7 +45,9 @@ std::filesystem::path nano::unique_path (nano::networks network) random_string += hex_chars[dis (gen)]; } - return (working_path (network) / random_string); + auto result = working_path (network) / random_string; + all_unique_paths.push_back (result); + return result; } void nano::remove_temporary_directories () diff --git a/nano/store/lmdb/lmdb.hpp b/nano/store/lmdb/lmdb.hpp index 5668d19401..91822f7f95 100644 --- a/nano/store/lmdb/lmdb.hpp +++ b/nano/store/lmdb/lmdb.hpp @@ -26,14 +26,6 @@ #include -namespace boost -{ -namespace filesystem -{ - class path; -} -} - namespace nano { class logging_mt;