diff options
author | tholenst <tholenst@google.com> | 2023-04-18 01:20:07 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-04-18 01:21:40 -0700 |
commit | b37c36509ed2250d20b514699b52a384cff1c2d9 (patch) | |
tree | a111e9bebd25c8fd5a06bece6f48807b36e9fb7e /cc/registry.h | |
parent | 2b1ea7cd9490d8c8a8dcd70e2c0f1e30171e2e6d (diff) | |
download | tink-b37c36509ed2250d20b514699b52a384cff1c2d9.tar.gz |
Remove Registry::GetPrimitive(absl::string_view, const MessageLite&);
This method is untested, and calls the same method in RegistryImpl -- which doesn't exist. Hence, if there would be any user of this method their compilation would already fail, and we can remove the method.
PiperOrigin-RevId: 525074582
Diffstat (limited to 'cc/registry.h')
-rw-r--r-- | cc/registry.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/cc/registry.h b/cc/registry.h index 9507e5930..5fb793322 100644 --- a/cc/registry.h +++ b/cc/registry.h @@ -107,15 +107,6 @@ class Registry { const google::crypto::tink::KeyData& key_data) { return internal::RegistryImpl::GlobalInstance().GetPrimitive<P>(key_data); } - // Convenience method for creating a new primitive for the key given - // in 'key'. It looks up a KeyManager identified by type_url, - // and calls manager's GetPrimitive(key)-method. - template <class P> - static crypto::tink::util::StatusOr<std::unique_ptr<P>> GetPrimitive( - absl::string_view type_url, const portable_proto::MessageLite& key) { - return internal::RegistryImpl::GlobalInstance().GetPrimitive<P>(type_url, - key); - } // Generates a new KeyData for the specified 'key_template'. // It looks up a KeyManager identified by key_template.type_url, |