remove CPubKey::VerifyCompact( ) which is never used
authorsvost <ya.nowa@yandex.ru>
Fri, 3 Feb 2017 05:17:31 +0000 (08:17 +0300)
committersvost <ya.nowa@yandex.ru>
Fri, 3 Feb 2017 05:17:31 +0000 (08:17 +0300)
src/key.cpp
src/key.h

index 3c4762e..52bd93e 100644 (file)
@@ -535,14 +535,6 @@ bool CPubKey::Verify(const uint256 &hash, const std::vector<unsigned char>& vchS
     return ret;
 }
 
-bool CPubKey::VerifyCompact(const uint256 &hash, const std::vector<unsigned char>& vchSig)
-{
-    CPubKey key;
-    if (!key.SetCompactSignature(hash, vchSig))
-        return false;
-    return true;
-}
-
 bool CKey::IsValid()
 {
     if (!fSet)
index 5c42c41..40e8790 100644 (file)
--- a/src/key.h
+++ b/src/key.h
@@ -201,7 +201,6 @@ public:
     }
 
     bool Verify(const uint256& hash, const std::vector<unsigned char>& vchSig) const;
-    bool VerifyCompact(const uint256 &hash, const std::vector<unsigned char>& vchSig);
 
     bool SetCompactSignature(const uint256 &hash, const std::vector<unsigned char>& vchSig);