From cbbd898cd5e73316269d84485083ee903ac06328 Mon Sep 17 00:00:00 2001 From: selsta Date: Fri, 14 Jun 2019 17:08:26 +0200 Subject: [PATCH] WalletManager: remove unused functions --- src/libwalletqt/WalletManager.cpp | 13 ------------- src/libwalletqt/WalletManager.h | 8 -------- 2 files changed, 21 deletions(-) diff --git a/src/libwalletqt/WalletManager.cpp b/src/libwalletqt/WalletManager.cpp index b6581f25..790ad561 100644 --- a/src/libwalletqt/WalletManager.cpp +++ b/src/libwalletqt/WalletManager.cpp @@ -281,17 +281,6 @@ QString WalletManager::errorString() const return tr("Unknown error"); } -bool WalletManager::moveWallet(const QString &, const QString &) -{ - return true; -} - - -QString WalletManager::walletLanguage(const QString &) -{ - return "English"; -} - quint64 WalletManager::maximumAllowedAmount() const { return Monero::Wallet::maximumAllowedAmount(); @@ -302,8 +291,6 @@ QString WalletManager::maximumAllowedAmountAsSting() const return WalletManager::displayAmount(WalletManager::maximumAllowedAmount()); } - - QString WalletManager::displayAmount(quint64 amount) const { return QString::fromStdString(Monero::Wallet::displayAmount(amount)); diff --git a/src/libwalletqt/WalletManager.h b/src/libwalletqt/WalletManager.h index 6b7f8c3e..3acfa845 100644 --- a/src/libwalletqt/WalletManager.h +++ b/src/libwalletqt/WalletManager.h @@ -127,14 +127,6 @@ public: //! returns error description in human language Q_INVOKABLE QString errorString() const; - - // wizard: both "create" and "recovery" paths. - // TODO: probably move it to "Wallet" interface - Q_INVOKABLE bool moveWallet(const QString &src, const QString &dst); - //! returns libwallet language name for given locale - Q_INVOKABLE QString walletLanguage(const QString &locale); - - //! since we can't call static method from QML, move it to this class Q_INVOKABLE QString displayAmount(quint64 amount) const; Q_INVOKABLE quint64 amountFromString(const QString &amount) const;