Skip to content

Commit 8a55831

Browse files
committed
wallet: remove unused methods
CWallet::DummySignTx, OutputGroupTypeMap::find
1 parent 8471967 commit 8a55831

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

src/wallet/coinselection.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -387,13 +387,6 @@ void OutputGroupTypeMap::Push(const OutputGroup& group, OutputType type, bool in
387387
}
388388
}
389389

390-
std::optional<Groups> OutputGroupTypeMap::Find(OutputType type)
391-
{
392-
auto it_by_type = groups_by_type.find(type);
393-
if (it_by_type == groups_by_type.end()) return std::nullopt;
394-
return it_by_type->second;
395-
}
396-
397390
CAmount GetSelectionWaste(const std::set<std::shared_ptr<COutput>>& inputs, CAmount change_cost, CAmount target, bool use_effective_value)
398391
{
399392
// This function should not be called with empty inputs as that would mean the selection failed

src/wallet/coinselection.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,6 @@ struct OutputGroupTypeMap
263263
// Based on the insert flag; appends group to the 'mixed_group' and, if value > 0, to the 'positive_group'.
264264
// This affects both; the groups filtered by type and the overall groups container.
265265
void Push(const OutputGroup& group, OutputType type, bool insert_positive, bool insert_mixed);
266-
// Retrieves 'Groups' filtered by type
267-
std::optional<Groups> Find(OutputType type);
268266
// Different output types count
269267
size_t TypesCount() { return groups_by_type.size(); }
270268
};

src/wallet/wallet.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -592,12 +592,6 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
592592
bool SubmitTxMemoryPoolAndRelay(CWalletTx& wtx, std::string& err_string, bool relay) const
593593
EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
594594

595-
bool DummySignTx(CMutableTransaction &txNew, const std::set<CTxOut> &txouts, const CCoinControl* coin_control = nullptr) const
596-
{
597-
std::vector<CTxOut> v_txouts(txouts.size());
598-
std::copy(txouts.begin(), txouts.end(), v_txouts.begin());
599-
return DummySignTx(txNew, v_txouts, coin_control);
600-
}
601595
bool DummySignTx(CMutableTransaction &txNew, const std::vector<CTxOut> &txouts, const CCoinControl* coin_control = nullptr) const;
602596

603597
bool ImportScripts(const std::set<CScript> scripts, int64_t timestamp) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);

0 commit comments

Comments
 (0)