aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/berkeleydb
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-27 10:01:20 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-27 10:01:20 +0000
commit4f873bcbaa7cbf8733ed9ffc4f136256cb90d447 (patch)
treeec22aea9d7c100757d097a798774a9edb66cf82f /src/blockchain_db/berkeleydb
parentMerge pull request #453 (diff)
downloadmonero-4f873bcbaa7cbf8733ed9ffc4f136256cb90d447.tar.xz
Remove some old/obsolete/unused code
git history's here if needed to get any of this back
Diffstat (limited to 'src/blockchain_db/berkeleydb')
-rw-r--r--src/blockchain_db/berkeleydb/db_bdb.cpp16
-rw-r--r--src/blockchain_db/berkeleydb/db_bdb.h12
2 files changed, 0 insertions, 28 deletions
diff --git a/src/blockchain_db/berkeleydb/db_bdb.cpp b/src/blockchain_db/berkeleydb/db_bdb.cpp
index c387d0362..a980703ec 100644
--- a/src/blockchain_db/berkeleydb/db_bdb.cpp
+++ b/src/blockchain_db/berkeleydb/db_bdb.cpp
@@ -1536,22 +1536,6 @@ output_data_t BlockchainBDB::get_output_key(const uint64_t& amount, const uint64
return get_output_key(glob_index);
}
-// As this is not used, its return is now a blank output.
-// This will save on space in the db.
-tx_out BlockchainBDB::get_output(const crypto::hash& h, const uint64_t& index) const
-{
- LOG_PRINT_L3("BlockchainBDB::" << __func__);
- return tx_out();
-}
-
-// As this is not used, its return is now a blank output.
-// This will save on space in the db.
-tx_out BlockchainBDB::get_output(const uint64_t& index) const
-{
- LOG_PRINT_L3("BlockchainBDB::" << __func__);
- return tx_out();
-}
-
tx_out_index BlockchainBDB::get_output_tx_and_index(const uint64_t& amount, const uint64_t& index)
{
LOG_PRINT_L3("BlockchainBDB::" << __func__);
diff --git a/src/blockchain_db/berkeleydb/db_bdb.h b/src/blockchain_db/berkeleydb/db_bdb.h
index a3383b2b6..6bc9cb4f1 100644
--- a/src/blockchain_db/berkeleydb/db_bdb.h
+++ b/src/blockchain_db/berkeleydb/db_bdb.h
@@ -300,18 +300,6 @@ public:
virtual output_data_t get_output_key(const uint64_t& amount, const uint64_t& index);
virtual output_data_t get_output_key(const uint64_t& global_index) const;
virtual void get_output_key(const uint64_t &amount, const std::vector<uint64_t> &offsets, std::vector<output_data_t> &outputs);
- virtual tx_out get_output(const crypto::hash& h, const uint64_t& index) const;
-
- /**
- * @brief get an output from its global index
- *
- * @param index global index of the output desired
- *
- * @return the output associated with the index.
- * Will throw OUTPUT_DNE if not output has that global index.
- * Will throw DB_ERROR if there is a non-specific LMDB error in fetching
- */
- tx_out get_output(const uint64_t& index) const;
virtual tx_out_index get_output_tx_and_index_from_global(const uint64_t& index) const;
virtual void get_output_tx_and_index_from_global(const std::vector<uint64_t> &global_indices,