From 7ddb1ac08f571d4aba8213ea2442325d42bdd39d Mon Sep 17 00:00:00 2001 From: svost Date: Fri, 3 Feb 2017 08:17:31 +0300 Subject: [PATCH] remove CPubKey::VerifyCompact( ) which is never used --- src/key.cpp | 8 -------- src/key.h | 1 - 2 files changed, 0 insertions(+), 9 deletions(-) diff --git a/src/key.cpp b/src/key.cpp index 3c4762e..52bd93e 100644 --- a/src/key.cpp +++ b/src/key.cpp @@ -535,14 +535,6 @@ bool CPubKey::Verify(const uint256 &hash, const std::vector& vchS return ret; } -bool CPubKey::VerifyCompact(const uint256 &hash, const std::vector& vchSig) -{ - CPubKey key; - if (!key.SetCompactSignature(hash, vchSig)) - return false; - return true; -} - bool CKey::IsValid() { if (!fSet) diff --git a/src/key.h b/src/key.h index 5c42c41..40e8790 100644 --- a/src/key.h +++ b/src/key.h @@ -201,7 +201,6 @@ public: } bool Verify(const uint256& hash, const std::vector& vchSig) const; - bool VerifyCompact(const uint256 &hash, const std::vector& vchSig); bool SetCompactSignature(const uint256 &hash, const std::vector& vchSig); -- 1.7.1