aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-05-15 13:36:25 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-05-15 13:36:25 -0400
commita7d45c5a7a46255631bb4814c3df27c3489ff3a0 (patch)
tree311bec68bdfc528d1c0923e2b6e8fd3a988705f7 /src/main.h
parent790fe2e558d93572f87b7f4117a54d899903c5bf (diff)
Remove dead code: CTxDB::EraseBlockIndex(), CBlockIndex::EraseBlockFromDisk()
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/main.h b/src/main.h
index 5ac5547a3e..37af4ff907 100644
--- a/src/main.h
+++ b/src/main.h
@@ -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