From aca0e5dcdb174ef7e88b76910d6fffd633688235 Mon Sep 17 00:00:00 2001 From: Kiminuo Date: Tue, 4 May 2021 12:58:44 +0200 Subject: [PATCH] Remove `GetDataDir(bool fNetSpecific = true)` function --- src/util/system.cpp | 5 ----- src/util/system.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/util/system.cpp b/src/util/system.cpp index 3dcf3e9b6..3f14a19a4 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 6a4bd9f99..c4317c62d 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);