aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKamil Domanski <kdomanski@kdemail.net>2014-05-13 20:48:34 +0200
committerKamil Domanski <kdomanski@kdemail.net>2014-05-20 14:58:20 +0200
commit0e31e5631c279353564f6407b8950b1224cf5b9f (patch)
tree7e0a6b9690eb93eb029a4b914fbc47846f4315d1 /src
parent9d97e83bf677ce595c6b2dc5d6805c2fcb1bc05b (diff)
remove CWallet::AddReserveKey which is never used
Diffstat (limited to 'src')
-rw-r--r--src/wallet.cpp15
-rw-r--r--src/wallet.h1
2 files changed, 0 insertions, 16 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index fa7aecddb6..89604f96ac 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -1671,21 +1671,6 @@ void CWallet::ReserveKeyFromKeyPool(int64_t& nIndex, CKeyPool& keypool)
}
}
-int64_t CWallet::AddReserveKey(const CKeyPool& keypool)
-{
- {
- LOCK2(cs_main, cs_wallet);
- CWalletDB walletdb(strWalletFile);
-
- int64_t nIndex = 1 + *(--setKeyPool.end());
- if (!walletdb.WritePool(nIndex, keypool))
- throw runtime_error("AddReserveKey() : writing added key failed");
- setKeyPool.insert(nIndex);
- return nIndex;
- }
- return -1;
-}
-
void CWallet::KeepKey(int64_t nIndex)
{
// Remove from key pool
diff --git a/src/wallet.h b/src/wallet.h
index b2c06d3f61..5e9af191cc 100644
--- a/src/wallet.h
+++ b/src/wallet.h
@@ -263,7 +263,6 @@ public:
bool NewKeyPool();
bool TopUpKeyPool(unsigned int kpSize = 0);
- int64_t AddReserveKey(const CKeyPool& keypool);
void ReserveKeyFromKeyPool(int64_t& nIndex, CKeyPool& keypool);
void KeepKey(int64_t nIndex);
void ReturnKey(int64_t nIndex);