aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiminuo <kiminuo@protonmail.com>2021-05-04 12:58:44 +0200
committerKiminuo <kiminuo@protonmail.com>2021-05-24 10:29:58 +0200
commitaca0e5dcdb174ef7e88b76910d6fffd633688235 (patch)
tree7da679d385e41d96798ab2e778637218587fbb12
parentb3e67f20a02bcf43f20873029ce30617c95eb9da (diff)
downloadbitcoin-aca0e5dcdb174ef7e88b76910d6fffd633688235.tar.xz
Remove `GetDataDir(bool fNetSpecific = true)` function
-rw-r--r--src/util/system.cpp5
-rw-r--r--src/util/system.h1
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);