mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 15:32:24 +00:00
Remove unnecessary or defunct code
This commit is contained in:
parent
ab0ed14a41
commit
89c24ac2be
2 changed files with 0 additions and 22 deletions
|
@ -352,7 +352,6 @@ bool Blockchain::init(BlockchainDB* db, const bool testnet, const cryptonote::te
|
|||
// we only need 1
|
||||
m_async_pool.create_thread(boost::bind(&boost::asio::io_service::run, &m_async_service));
|
||||
|
||||
//TODO: move this block into separate functions?
|
||||
#if defined(PER_BLOCK_CHECKPOINT)
|
||||
if (!fakechain)
|
||||
load_compiled_in_block_hashes();
|
||||
|
|
|
@ -423,9 +423,6 @@ namespace cryptonote
|
|||
*/
|
||||
bool handle_get_objects(NOTIFY_REQUEST_GET_OBJECTS::request& arg, NOTIFY_RESPONSE_GET_OBJECTS::request& rsp);
|
||||
|
||||
//FIXME: function declared, but never defined or used. Candidate for removal.
|
||||
bool handle_get_objects(const COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS::request& req, COMMAND_RPC_GET_RANDOM_OUTPUTS_FOR_AMOUNTS::response& res);
|
||||
|
||||
/**
|
||||
* @brief gets random outputs to mix with
|
||||
*
|
||||
|
@ -988,9 +985,6 @@ namespace cryptonote
|
|||
*/
|
||||
bool validate_miner_transaction(const block& b, size_t cumulative_block_size, uint64_t fee, uint64_t& base_reward, uint64_t already_generated_coins, bool &partial_block_reward);
|
||||
|
||||
//FIXME: function declared but neither defined nor used, candidate for removal
|
||||
bool validate_transaction(const block& b, uint64_t height, const transaction& tx);
|
||||
|
||||
/**
|
||||
* @brief reverts the blockchain to its previous state following a failed switch
|
||||
*
|
||||
|
@ -1005,18 +999,6 @@ namespace cryptonote
|
|||
*/
|
||||
bool rollback_blockchain_switching(std::list<block>& original_chain, uint64_t rollback_height);
|
||||
|
||||
//FIXME: function declared but neither defined nor used, candidate for removal,
|
||||
// remnant from old blockchain_storage implementation
|
||||
bool add_transaction_from_block(const transaction& tx, const crypto::hash& tx_id, const crypto::hash& bl_id, uint64_t bl_height);
|
||||
|
||||
//FIXME: function declared but neither defined nor used, candidate for removal,
|
||||
// remnant from old blockchain_storage implementation
|
||||
bool push_transaction_to_global_outs_index(const transaction& tx, const crypto::hash& tx_id, std::vector<uint64_t>& global_indexes);
|
||||
|
||||
//FIXME: function declared but neither defined nor used, candidate for removal,
|
||||
// remnant from old blockchain_storage implementation
|
||||
bool pop_transaction_from_global_index(const transaction& tx, const crypto::hash& tx_id);
|
||||
|
||||
/**
|
||||
* @brief gets recent block sizes for median calculation
|
||||
*
|
||||
|
@ -1145,9 +1127,6 @@ namespace cryptonote
|
|||
*/
|
||||
bool check_for_double_spend(const transaction& tx, key_images_container& keys_this_block) const;
|
||||
|
||||
//FIXME: function declared but neither defined nor used, candidate for removal,
|
||||
void get_timestamp_and_difficulty(uint64_t ×tamp, difficulty_type &difficulty, const int offset) const;
|
||||
|
||||
/**
|
||||
* @brief validates a transaction input's ring signature
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue