Skip to content

Commit 66c8f76

Browse files
tniessenTrott
authored andcommitted
src: remove KeyObjectData::CreateSecret overload
This function is unused and there is not much potential for using it in the current codebase. PR-URL: #38067 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent f52c921 commit 66c8f76

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

Diff for: src/crypto/crypto_keys.cc

-5
Original file line numberDiff line numberDiff line change
@@ -837,11 +837,6 @@ void KeyObjectData::MemoryInfo(MemoryTracker* tracker) const {
837837
}
838838
}
839839

840-
std::shared_ptr<KeyObjectData> KeyObjectData::CreateSecret(
841-
const ArrayBufferOrViewContents<char>& buf) {
842-
return CreateSecret(buf.ToCopy());
843-
}
844-
845840
std::shared_ptr<KeyObjectData> KeyObjectData::CreateSecret(ByteSource key) {
846841
CHECK(key);
847842
return std::shared_ptr<KeyObjectData>(new KeyObjectData(std::move(key)));

Diff for: src/crypto/crypto_keys.h

-3
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,6 @@ class ManagedEVPPKey : public MemoryRetainer {
134134
// Objects of this class can safely be shared among threads.
135135
class KeyObjectData : public MemoryRetainer {
136136
public:
137-
static std::shared_ptr<KeyObjectData> CreateSecret(
138-
const ArrayBufferOrViewContents<char>& buf);
139-
140137
static std::shared_ptr<KeyObjectData> CreateSecret(ByteSource key);
141138

142139
static std::shared_ptr<KeyObjectData> CreateAsymmetric(

0 commit comments

Comments
 (0)