aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZachary Michaels <mikezackles@gmail.com>2014-07-01 11:48:16 -0400
committerZachary Michaels <mikezackles@gmail.com>2014-07-01 14:57:27 -0400
commita633c11cbb852bbdceb70f511942525222ee2394 (patch)
treee293620db825ed435d89413c2cd9e12dcf54841c /src
parentFix assert bug in base58 encode (diff)
downloadmonero-a633c11cbb852bbdceb70f511942525222ee2394.tar.xz
Remove unused function
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp18
-rw-r--r--src/cryptonote_core/cryptonote_core.h1
2 files changed, 0 insertions, 19 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index be4917703..2a0129f4e 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -81,24 +81,6 @@ namespace cryptonote
return m_blockchain_storage.get_transactions(txs_ids, txs, missed_txs);
}
//-----------------------------------------------------------------------------------------------
- bool core::get_transaction(const crypto::hash &h, transaction &tx)
- {
- std::vector<crypto::hash> ids;
- ids.push_back(h);
- std::list<transaction> ltx;
- std::list<crypto::hash> missing;
- if (m_blockchain_storage.get_transactions(ids, ltx, missing))
- {
- if (ltx.size() > 0)
- {
- tx = *ltx.begin();
- return true;
- }
- }
-
- return false;
- }
- //-----------------------------------------------------------------------------------------------
bool core::get_alternative_blocks(std::list<block>& blocks)
{
return m_blockchain_storage.get_alternative_blocks(blocks);
diff --git a/src/cryptonote_core/cryptonote_core.h b/src/cryptonote_core/cryptonote_core.h
index ee19ca9e1..660fcf349 100644
--- a/src/cryptonote_core/cryptonote_core.h
+++ b/src/cryptonote_core/cryptonote_core.h
@@ -58,7 +58,6 @@ namespace cryptonote
}
crypto::hash get_block_id_by_height(uint64_t height);
bool get_transactions(const std::vector<crypto::hash>& txs_ids, std::list<transaction>& txs, std::list<crypto::hash>& missed_txs);
- bool get_transaction(const crypto::hash &h, transaction &tx);
bool get_block_by_hash(const crypto::hash &h, block &blk);
//void get_all_known_block_ids(std::list<crypto::hash> &main, std::list<crypto::hash> &alt, std::list<crypto::hash> &invalid);