diff options
| author | xiphon <xiphon@protonmail.com> | 2021-01-14 19:14:22 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2021-01-14 19:14:22 +0000 |
| commit | d3102b1cc5ab6d4e66e57ea9c53e32210b5f1083 (patch) | |
| tree | cfc5147544170c0dd6f452ee8e320d922afd82f4 /src/daemon/DaemonManager.cpp | |
| parent | 3ca5f10fa8ce901a94188d4c76c5e5e8e8bf3ff2 (diff) | |
| download | monzero-gui-d3102b1cc5ab6d4e66e57ea9c53e32210b5f1083.tar.gz monzero-gui-d3102b1cc5ab6d4e66e57ea9c53e32210b5f1083.tar.xz monzero-gui-d3102b1cc5ab6d4e66e57ea9c53e32210b5f1083.zip | |
DaemonManager: refactoring - drop singleton usage
Diffstat (limited to 'src/daemon/DaemonManager.cpp')
| -rw-r--r-- | src/daemon/DaemonManager.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/daemon/DaemonManager.cpp b/src/daemon/DaemonManager.cpp index 86c1a2cc..82d9eece 100644 --- a/src/daemon/DaemonManager.cpp +++ b/src/daemon/DaemonManager.cpp @@ -47,23 +47,6 @@ namespace { static const int DAEMON_START_TIMEOUT_SECONDS = 120; } -DaemonManager * DaemonManager::m_instance = nullptr; -QStringList DaemonManager::m_clArgs; - -DaemonManager *DaemonManager::instance(const QStringList *args/* = nullptr*/) -{ - if (!m_instance) { - m_instance = new DaemonManager; - // store command line arguments for later use - if (args != nullptr) - { - m_clArgs = *args; - } - } - - return m_instance; -} - bool DaemonManager::start(const QString &flags, NetworkType::Type nettype, const QString &dataDir, const QString &bootstrapNodeAddress, bool noSync /* = false*/) { if (!QFileInfo(m_monerod).isFile()) @@ -85,12 +68,6 @@ bool DaemonManager::start(const QString &flags, NetworkType::Type nettype, const else if (nettype == NetworkType::STAGENET) arguments << "--stagenet"; - foreach (const QString &str, m_clArgs) { - qDebug() << QString(" [%1] ").arg(str); - if (!str.isEmpty()) - arguments << str; - } - // Custom startup flags for daemon foreach (const QString &str, flags.split(" ")) { qDebug() << QString(" [%1] ").arg(str); |
