mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 20:32:35 -03:00
CDiskBlockIndex: remove unused ToString() class member
and mark its inherited CBlockIndex#ToString public interface member as deleted, to disallow calling it in the derived CDiskBlockIndex class.
This commit is contained in:
parent
14aeece462
commit
99e8ec8721
2 changed files with 1 additions and 11 deletions
11
src/chain.h
11
src/chain.h
|
@ -415,16 +415,7 @@ public:
|
||||||
return block.GetHash();
|
return block.GetHash();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string ToString() = delete;
|
||||||
std::string ToString() const
|
|
||||||
{
|
|
||||||
std::string str = "CDiskBlockIndex(";
|
|
||||||
str += CBlockIndex::ToString();
|
|
||||||
str += strprintf("\n hashBlock=%s, hashPrev=%s)",
|
|
||||||
GetBlockHash().ToString(),
|
|
||||||
hashPrev.ToString());
|
|
||||||
return str;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** An in-memory indexed chain of blocks. */
|
/** An in-memory indexed chain of blocks. */
|
||||||
|
|
|
@ -31,7 +31,6 @@ FUZZ_TARGET(chain)
|
||||||
(void)disk_block_index->GetUndoPos();
|
(void)disk_block_index->GetUndoPos();
|
||||||
(void)disk_block_index->HaveTxsDownloaded();
|
(void)disk_block_index->HaveTxsDownloaded();
|
||||||
(void)disk_block_index->IsValid();
|
(void)disk_block_index->IsValid();
|
||||||
(void)disk_block_index->ToString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const CBlockHeader block_header = disk_block_index->GetBlockHeader();
|
const CBlockHeader block_header = disk_block_index->GetBlockHeader();
|
||||||
|
|
Loading…
Reference in a new issue