From 7fdc82a630b2ab6852c1d26663372b1b68b09976 Mon Sep 17 00:00:00 2001 From: sowle Date: Thu, 25 Apr 2024 16:46:36 +0200 Subject: [PATCH] minor code cleanup --- src/crypto/crypto-sugar.h | 9 --------- src/crypto/range_proofs.h | 1 - src/currency_core/blockchain_storage.cpp | 1 - 3 files changed, 11 deletions(-) diff --git a/src/crypto/crypto-sugar.h b/src/crypto/crypto-sugar.h index be99731f..846e4572 100644 --- a/src/crypto/crypto-sugar.h +++ b/src/crypto/crypto-sugar.h @@ -1202,15 +1202,6 @@ namespace crypto void add_point(const point_t& point) { m_elements.emplace_back(point.to_public_key()); - - // faster? - /* static_assert(sizeof point.m_p3 == 5 * sizeof(item_t), "size missmatch"); - const item_t *p = (item_t*)&point.m_p3; - m_elements.emplace_back(p[0]); - m_elements.emplace_back(p[1]); - m_elements.emplace_back(p[2]); - m_elements.emplace_back(p[3]); - m_elements.emplace_back(p[4]); */ } void add_pub_key(const crypto::public_key& pk) diff --git a/src/crypto/range_proofs.h b/src/crypto/range_proofs.h index 646f2908..17cbba51 100644 --- a/src/crypto/range_proofs.h +++ b/src/crypto/range_proofs.h @@ -100,7 +100,6 @@ namespace crypto } // TODO: refactor with proper OOB handling - // TODO: @#@# add domain separation static const point_t& get_generator(bool select_H, size_t index) { if (index >= c_bpp_mn_max) diff --git a/src/currency_core/blockchain_storage.cpp b/src/currency_core/blockchain_storage.cpp index 58249f3a..90d573d2 100644 --- a/src/currency_core/blockchain_storage.cpp +++ b/src/currency_core/blockchain_storage.cpp @@ -4508,7 +4508,6 @@ bool blockchain_storage::add_transaction_from_block(const transaction& tx, const << " (fee: " << (is_coinbase(tx) ? "0 [coinbase]" : print_money_brief(get_tx_fee(tx))) << ")"); TIME_MEASURE_FINISH_PD_COND(need_to_profile, tx_print_log); - //@#@ del me // LOG_PRINT_L0("APPEND_TX_TIME_INNER: " << m_performance_data.tx_append_rl_wait.get_last_val() // << " | " << m_performance_data.tx_append_is_expired.get_last_val() // << " | " << m_performance_data.tx_process_extra.get_last_val()