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/zmq_rpc.cpp | |
| parent | cb70ae9450b6887a046ef962abe73f3e64787ae2 (diff) | |
| download | monzero-core-85db1734e7dd456c1edb095a2c829527262b96c7.tar.gz monzero-core-85db1734e7dd456c1edb095a2c829527262b96c7.tar.xz monzero-core-85db1734e7dd456c1edb095a2c829527262b96c7.zip | |
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/zmq_rpc.cpp')
| -rw-r--r-- | tests/unit_tests/zmq_rpc.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/unit_tests/zmq_rpc.cpp b/tests/unit_tests/zmq_rpc.cpp index 59759bed8..66a7f3ac1 100644 --- a/tests/unit_tests/zmq_rpc.cpp +++ b/tests/unit_tests/zmq_rpc.cpp @@ -202,7 +202,6 @@ namespace MASSERT(!expected.empty()); std::size_t actual_height = 0; - crypto::hash actual_id{}; crypto::hash actual_prev_id{}; std::vector<crypto::hash> actual_ids{}; GET_FROM_JSON_OBJECT(pub.second, actual_height, first_height); |
