mirror of
https://github.com/monero-project/monero.git
synced 2025-08-05 03:54:19 -04:00
Remove unused variables in monero codebase
There are quite a few variables in the code that are no longer (or perhaps never were) in use. These were discovered by enabling compiler warnings for unused variables and cleaning them up. In most cases where the unused variables were the result of a function call the call was left but the variable assignment removed, unless it was obvious that it was a simple getter with no side effects.
This commit is contained in:
parent
cb70ae9450
commit
85db1734e7
34 changed files with 15 additions and 81 deletions
|
@ -1059,7 +1059,6 @@ bool t_rpc_command_executor::print_transaction(crypto::hash transaction_hash,
|
|||
// Print json if requested
|
||||
if (include_json)
|
||||
{
|
||||
crypto::hash tx_hash, tx_prefix_hash;
|
||||
cryptonote::transaction tx;
|
||||
cryptonote::blobdata blob;
|
||||
std::string source = as_hex.empty() ? pruned_as_hex + prunable_as_hex : as_hex;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue