diff options
author | Kevin Barbour <kevinbarbourd@gmail.com> | 2021-01-23 10:38:50 +0100 |
---|---|---|
committer | Kevin Barbour <kevinbarbourd@gmail.com> | 2021-02-09 08:05:05 +0100 |
commit | 85db1734e7dd456c1edb095a2c829527262b96c7 (patch) | |
tree | 988b4b80b55192462b33c1acc7210746c1e1f0a0 /tests/unit_tests/bulletproofs.cpp | |
parent | Merge pull request #7260 (diff) | |
download | monero-85db1734e7dd456c1edb095a2c829527262b96c7.tar.xz |
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.
Diffstat (limited to 'tests/unit_tests/bulletproofs.cpp')
-rw-r--r-- | tests/unit_tests/bulletproofs.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/unit_tests/bulletproofs.cpp b/tests/unit_tests/bulletproofs.cpp index 7c6e459f5..ee617938c 100644 --- a/tests/unit_tests/bulletproofs.cpp +++ b/tests/unit_tests/bulletproofs.cpp @@ -296,7 +296,6 @@ TEST(bulletproof, weight_pruned) ASSERT_TRUE(tx.version == 2); ASSERT_FALSE(tx.pruned); ASSERT_TRUE(rct::is_rct_bulletproof(tx.rct_signatures.type)); - const uint64_t tx_size = bd.size(); const uint64_t tx_weight = cryptonote::get_transaction_weight(tx); ASSERT_TRUE(parse_and_validate_tx_base_from_blob(bd, pruned_tx)); ASSERT_TRUE(pruned_tx.version == 2); |