mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-07 19:22:17 +01:00
remove unused gArgs wrappers
This commit is contained in:
committed by
Wladimir J. van der Laan
parent
bb81e17355
commit
fcbde9091e
@@ -564,8 +564,8 @@ const fs::path &GetDataDir(bool fNetSpecific)
|
||||
if (!path.empty())
|
||||
return path;
|
||||
|
||||
if (IsArgSet("-datadir")) {
|
||||
path = fs::system_complete(GetArg("-datadir", ""));
|
||||
if (gArgs.IsArgSet("-datadir")) {
|
||||
path = fs::system_complete(gArgs.GetArg("-datadir", ""));
|
||||
if (!fs::is_directory(path)) {
|
||||
path = "";
|
||||
return path;
|
||||
@@ -627,7 +627,7 @@ void ArgsManager::ReadConfigFile(const std::string& confPath)
|
||||
#ifndef WIN32
|
||||
fs::path GetPidFile()
|
||||
{
|
||||
fs::path pathPidFile(GetArg("-pid", BITCOIN_PID_FILENAME));
|
||||
fs::path pathPidFile(gArgs.GetArg("-pid", BITCOIN_PID_FILENAME));
|
||||
if (!pathPidFile.is_complete()) pathPidFile = GetDataDir() / pathPidFile;
|
||||
return pathPidFile;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user