From 9768e96d7447f8afa443347b9532d0f4a1bab17c Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 25 Oct 2019 16:52:30 +0000 Subject: [PATCH] simplewallet: remove remaining payment id dead code pointed out by coverity --- src/simplewallet/simplewallet.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 6a54c24fb..1c38f7a5a 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -885,16 +885,6 @@ bool simple_wallet::change_password(const std::vector &args) bool simple_wallet::payment_id(const std::vector &args/* = std::vector()*/) { LONG_PAYMENT_ID_SUPPORT_CHECK(); - - crypto::hash payment_id; - if (args.size() > 0) - { - PRINT_USAGE(USAGE_PAYMENT_ID); - return true; - } - payment_id = crypto::rand(); - success_msg_writer() << tr("Random payment ID: ") << payment_id; - return true; } bool simple_wallet::print_fee_info(const std::vector &args/* = std::vector()*/) @@ -5953,13 +5943,6 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector &args_) if (tools::wallet2::parse_long_payment_id(local_args.back(), payment_id)) { LONG_PAYMENT_ID_SUPPORT_CHECK(); - set_payment_id_to_tx_extra_nonce(extra_nonce, payment_id); } else { @@ -8985,7 +8960,6 @@ bool simple_wallet::address_book(const std::vector &args/* = std::v if (tools::wallet2::parse_long_payment_id(args[3], payment_id)) { LONG_PAYMENT_ID_SUPPORT_CHECK(); - description_start += 2; } else if (tools::wallet2::parse_short_payment_id(args[3], info.payment_id)) {