Remove dead code: CTxDB::EraseBlockIndex(), CBlockIndex::EraseBlockFromDisk()

This commit is contained in:
Jeff Garzik
2012-05-15 13:36:25 -04:00
committed by Jeff Garzik
parent 790fe2e558
commit a7d45c5a7a
3 changed files with 0 additions and 21 deletions

View File

@@ -1130,21 +1130,6 @@ public:
return CheckProofOfWork(GetBlockHash(), nBits);
}
bool EraseBlockFromDisk()
{
// Open history file
CAutoFile fileout = CAutoFile(OpenBlockFile(nFile, nBlockPos, "rb+"), SER_DISK, CLIENT_VERSION);
if (!fileout)
return false;
// Overwrite with empty null block
CBlock block;
block.SetNull();
fileout << block;
return true;
}
enum { nMedianTimeSpan=11 };
int64 GetMedianTimePast() const