qt, wallet, refactor: Make WalletModel::sendCoins() return void

Currently, the `WalletModel::sendCoins()` function always returns the
same value.

Also dead and noop code has been removed.
This commit is contained in:
Hennadii Stepanov
2022-05-29 17:40:30 +02:00
parent ba48fcf4a4
commit 1f653dc262
3 changed files with 4 additions and 13 deletions

View File

@@ -234,7 +234,7 @@ WalletModel::SendCoinsReturn WalletModel::prepareTransaction(WalletModelTransact
return SendCoinsReturn(OK);
}
WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction &transaction)
void WalletModel::sendCoins(WalletModelTransaction& transaction)
{
QByteArray transaction_array; /* store serialized transaction */
@@ -280,8 +280,6 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(WalletModelTransaction &tran
}
checkBalanceChanged(m_wallet->getBalances()); // update balance immediately, otherwise there could be a short noticeable delay until pollBalanceChanged hits
return SendCoinsReturn(OK);
}
OptionsModel* WalletModel::getOptionsModel() const