diff options
author | Kiminuo <kiminuo@protonmail.com> | 2021-05-04 12:58:44 +0200 |
---|---|---|
committer | Kiminuo <kiminuo@protonmail.com> | 2021-05-24 10:29:58 +0200 |
commit | aca0e5dcdb174ef7e88b76910d6fffd633688235 (patch) | |
tree | 7da679d385e41d96798ab2e778637218587fbb12 /src/util | |
parent | b3e67f20a02bcf43f20873029ce30617c95eb9da (diff) |
Remove `GetDataDir(bool fNetSpecific = true)` function
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/system.cpp | 5 | ||||
-rw-r--r-- | src/util/system.h | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/util/system.cpp b/src/util/system.cpp index 3dcf3e9b6e..3f14a19a4a 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -802,11 +802,6 @@ fs::path GetDefaultDataDir() #endif } -const fs::path &GetDataDir(bool fNetSpecific) -{ - return fNetSpecific ? gArgs.GetDataDirNet() : gArgs.GetDataDirBase(); -} - bool CheckDataDirOption() { std::string datadir = gArgs.GetArg("-datadir", ""); diff --git a/src/util/system.h b/src/util/system.h index 6a4bd9f99e..c4317c62d0 100644 --- a/src/util/system.h +++ b/src/util/system.h @@ -90,7 +90,6 @@ void ReleaseDirectoryLocks(); bool TryCreateDirectories(const fs::path& p); fs::path GetDefaultDataDir(); -const fs::path &GetDataDir(bool fNetSpecific = true); // Return true if -datadir option points to a valid directory or is not specified. bool CheckDataDirOption(); fs::path GetConfigFile(const std::string& confPath); |