diff --git a/src/crypto/crypto_keys.cc b/src/crypto/crypto_keys.cc index 4e8408086e9bff..be12022bdb7f1d 100644 --- a/src/crypto/crypto_keys.cc +++ b/src/crypto/crypto_keys.cc @@ -837,11 +837,6 @@ void KeyObjectData::MemoryInfo(MemoryTracker* tracker) const { } } -std::shared_ptr KeyObjectData::CreateSecret( - const ArrayBufferOrViewContents& buf) { - return CreateSecret(buf.ToCopy()); -} - std::shared_ptr KeyObjectData::CreateSecret(ByteSource key) { CHECK(key); return std::shared_ptr(new KeyObjectData(std::move(key))); diff --git a/src/crypto/crypto_keys.h b/src/crypto/crypto_keys.h index bf1498e62851eb..98e497a5b220c7 100644 --- a/src/crypto/crypto_keys.h +++ b/src/crypto/crypto_keys.h @@ -134,9 +134,6 @@ class ManagedEVPPKey : public MemoryRetainer { // Objects of this class can safely be shared among threads. class KeyObjectData : public MemoryRetainer { public: - static std::shared_ptr CreateSecret( - const ArrayBufferOrViewContents& buf); - static std::shared_ptr CreateSecret(ByteSource key); static std::shared_ptr CreateAsymmetric(