aboutsummaryrefslogtreecommitdiff
path: root/src/coins.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-04-25 11:29:41 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2017-06-01 13:15:03 -0700
commit97072d6685564dd50aab4c145b1758ccc10863b3 (patch)
treee8657bd100dfc54ace9d828242eb3e0320d9318c /src/coins.cpp
parentce23efaa5c2e8e50744a896424b01052db34a3d6 (diff)
downloadbitcoin-97072d6685564dd50aab4c145b1758ccc10863b3.tar.xz
Remove unused CCoins methods
Diffstat (limited to 'src/coins.cpp')
-rw-r--r--src/coins.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/coins.cpp b/src/coins.cpp
index 38b8df1713..09fd2b13d0 100644
--- a/src/coins.cpp
+++ b/src/coins.cpp
@@ -10,38 +10,6 @@
#include <assert.h>
-/**
- * calculate number of bytes for the bitmask, and its number of non-zero bytes
- * each bit in the bitmask represents the availability of one output, but the
- * availabilities of the first two outputs are encoded separately
- */
-void CCoins::CalcMaskSize(unsigned int &nBytes, unsigned int &nNonzeroBytes) const {
- unsigned int nLastUsedByte = 0;
- for (unsigned int b = 0; 2+b*8 < vout.size(); b++) {
- bool fZero = true;
- for (unsigned int i = 0; i < 8 && 2+b*8+i < vout.size(); i++) {
- if (!vout[2+b*8+i].IsNull()) {
- fZero = false;
- continue;
- }
- }
- if (!fZero) {
- nLastUsedByte = b + 1;
- nNonzeroBytes++;
- }
- }
- nBytes += nLastUsedByte;
-}
-
-bool CCoins::Spend(uint32_t nPos)
-{
- if (nPos >= vout.size() || vout[nPos].IsNull())
- return false;
- vout[nPos].SetNull();
- Cleanup();
- return true;
-}
-
bool CCoinsView::GetCoins(const COutPoint &outpoint, Coin &coin) const { return false; }
bool CCoinsView::HaveCoins(const COutPoint &outpoint) const { return false; }
uint256 CCoinsView::GetBestBlock() const { return uint256(); }