Skip to content

Commit

Permalink
Remove deprecated versions of RegisterKeyManager for removal.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 514689012
Change-Id: I786d01561341ae3b65b5a8e334d933e7e6ae8860
  • Loading branch information
morambro authored and copybara-github committed Mar 7, 2023
1 parent 07d3024 commit 95edae5
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tink/registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,6 @@ class Registry {
manager.release(), new_key_allowed);
}

// NOLINTBEGIN(whitespace/line_length) (Formatted when commented in)
// TINK-PENDING-REMOVAL-IN-2.0.0-START
// Same functionality as the overload which takes a unique pointer, for
// new_key_allowed = true.
template <class P>
ABSL_DEPRECATED(
"Use RegisterKeyManager with a unique_ptr manager and new_key_allowed = "
"true instead.")
static crypto::tink::util::Status RegisterKeyManager(KeyManager<P>* manager) {
return RegisterKeyManager(absl::WrapUnique(manager), true);
}

template <class P>
ABSL_DEPRECATED("Use RegisterKeyManager with a unique_ptr manager instead.")
static crypto::tink::util::Status RegisterKeyManager(KeyManager<P>* manager,
bool new_key_allowed) {
return RegisterKeyManager(absl::WrapUnique(manager), new_key_allowed);
}
// TINK-PENDING-REMOVAL-IN-2.0.0-END
// NOLINTEND(whitespace/line_length)

template <class KTManager>
static crypto::tink::util::Status RegisterKeyTypeManager(
std::unique_ptr<KTManager> manager, bool new_key_allowed) {
Expand Down

0 comments on commit 95edae5

Please sign in to comment.