diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-23 13:47:51 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-23 15:37:36 +0000 |
| commit | d4f50cb109c45c1f50700cbe2e88ec891eb7d469 (patch) | |
| tree | d9f69a28fb4500ad985ccc2875836acf88105675 /tests/core_tests | |
| parent | 611639710d9f3665999b4ec71a52efc73aca4853 (diff) | |
| download | monzero-core-d4f50cb109c45c1f50700cbe2e88ec891eb7d469.tar.gz monzero-core-d4f50cb109c45c1f50700cbe2e88ec891eb7d469.tar.xz monzero-core-d4f50cb109c45c1f50700cbe2e88ec891eb7d469.zip | |
remove some unused code
Found by codacy.com
Diffstat (limited to 'tests/core_tests')
| -rw-r--r-- | tests/core_tests/chaingen.h | 2 | ||||
| -rw-r--r-- | tests/core_tests/transaction_tests.cpp | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/tests/core_tests/chaingen.h b/tests/core_tests/chaingen.h index 6b9277a30..b380aca01 100644 --- a/tests/core_tests/chaingen.h +++ b/tests/core_tests/chaingen.h @@ -511,7 +511,7 @@ inline bool do_replay_events(std::vector<test_event_entry>& events) // FIXME: make sure that vm has arg_testnet_on set to true or false if // this test needs for it to be so. get_test_options<t_test_class> gto; - if (!c.init(vm, NULL, >o.test_options)) + if (!c.init(vm, >o.test_options)) { MERROR("Failed to init core"); return false; diff --git a/tests/core_tests/transaction_tests.cpp b/tests/core_tests/transaction_tests.cpp index 3c6954bc6..810dec6fc 100644 --- a/tests/core_tests/transaction_tests.cpp +++ b/tests/core_tests/transaction_tests.cpp @@ -54,9 +54,6 @@ bool test_transaction_generation_and_ring_signature() account_base miner_acc6; miner_acc6.generate(); - std::string add_str = miner_acc3.get_public_address_str(MAINNET); - - account_base rv_acc; rv_acc.generate(); account_base rv_acc2; |
