From 99e8ec8721a52cd08bdca31f6e926c9c1ce281fb Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Sun, 12 Jun 2022 12:38:38 +0200 Subject: 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. --- src/chain.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/chain.h') diff --git a/src/chain.h b/src/chain.h index 1a499b07cc..251471befb 100644 --- a/src/chain.h +++ b/src/chain.h @@ -415,16 +415,7 @@ public: return block.GetHash(); } - - std::string ToString() const - { - std::string str = "CDiskBlockIndex("; - str += CBlockIndex::ToString(); - str += strprintf("\n hashBlock=%s, hashPrev=%s)", - GetBlockHash().ToString(), - hashPrev.ToString()); - return str; - } + std::string ToString() = delete; }; /** An in-memory indexed chain of blocks. */ -- cgit v1.2.3