Skip to content

Commit

Permalink
Removed leftovers from boost filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
RickiNano committed Oct 18, 2023
1 parent 58394ce commit ccb5364
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 58 deletions.
1 change: 0 additions & 1 deletion nano/core_test/block_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,6 @@ TEST (mdb_block_store, bad_path)
return;
}
ASSERT_TRUE (false);

}

TEST (block_store, DISABLED_already_open) // File can be shared
Expand Down
8 changes: 0 additions & 8 deletions nano/lib/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 0 additions & 8 deletions nano/lib/rpcconfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@
#include <thread>
#include <vector>

namespace boost
{
namespace filesystem
{
class path;
}
}

namespace nano
{
class tomlconfig;
Expand Down
5 changes: 0 additions & 5 deletions nano/lib/utility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@

namespace boost
{
namespace filesystem
{
class path;
}

namespace system
{
class error_code;
Expand Down
8 changes: 0 additions & 8 deletions nano/nano_node/daemon.hpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
namespace boost
{
namespace filesystem
{
class path;
}
}

namespace nano
{
class node_flags;
Expand Down
7 changes: 0 additions & 7 deletions nano/node/ipc/ipc_access_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
#include <unordered_map>
#include <unordered_set>

namespace boost
{
namespace filesystem
{
class path;
}
}
namespace cpptoml
{
class table;
Expand Down
4 changes: 0 additions & 4 deletions nano/node/logging.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ namespace sinks

BOOST_LOG_CLOSE_NAMESPACE

namespace filesystem
{
class path;
}
}

namespace nano
Expand Down
8 changes: 0 additions & 8 deletions nano/node/node_rpc_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@

#include <string>

namespace boost
{
namespace filesystem
{
class path;
}
}

namespace nano
{
class tomlconfig;
Expand Down
4 changes: 3 additions & 1 deletion nano/secure/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down
8 changes: 0 additions & 8 deletions nano/store/lmdb/lmdb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@

#include <lmdb/libraries/liblmdb/lmdb.h>

namespace boost
{
namespace filesystem
{
class path;
}
}

namespace nano
{
class logging_mt;
Expand Down

0 comments on commit ccb5364

Please sign in to comment.