Remove unused C++ code not covered by unit tests

This commit is contained in:
practicalswift
2017-03-28 08:40:16 +02:00
parent 95f5e44075
commit b51aaf1c42
9 changed files with 3 additions and 42 deletions

View File

@@ -131,14 +131,6 @@ void CKey::MakeNewKey(bool fCompressedIn) {
fCompressed = fCompressedIn;
}
bool CKey::SetPrivKey(const CPrivKey &privkey, bool fCompressedIn) {
if (!ec_privkey_import_der(secp256k1_context_sign, (unsigned char*)begin(), &privkey[0], privkey.size()))
return false;
fCompressed = fCompressedIn;
fValid = true;
return true;
}
CPrivKey CKey::GetPrivKey() const {
assert(fValid);
CPrivKey privkey;