[handshaker API] remove some unused legacy cruft

pull/35628/head
Mark D. Roth 10 months ago
parent 1afcc3bd13
commit 8fad55cf42
  1. 8
      src/core/lib/security/transport/security_handshaker.cc
  2. 6
      src/core/lib/security/transport/security_handshaker.h
  3. 8
      src/core/lib/transport/handshaker.cc
  4. 7
      src/core/lib/transport/handshaker.h

@ -671,11 +671,3 @@ void SecurityRegisterHandshakerFactories(CoreConfiguration::Builder* builder) {
}
} // namespace grpc_core
grpc_handshaker* grpc_security_handshaker_create(
tsi_handshaker* handshaker, grpc_security_connector* connector,
const grpc_channel_args* args) {
return SecurityHandshakerCreate(handshaker, connector,
grpc_core::ChannelArgs::FromC(args))
.release();
}

@ -42,10 +42,4 @@ void SecurityRegisterHandshakerFactories(CoreConfiguration::Builder*);
} // namespace grpc_core
// TODO(arjunroy): This is transitional to account for the new handshaker API
// and will eventually be removed entirely.
grpc_handshaker* grpc_security_handshaker_create(
tsi_handshaker* handshaker, grpc_security_connector* connector,
const grpc_channel_args* args);
#endif // GRPC_SRC_CORE_LIB_SECURITY_TRANSPORT_SECURITY_HANDSHAKER_H

@ -227,11 +227,3 @@ void HandshakeManager::DoHandshake(grpc_endpoint* endpoint,
}
} // namespace grpc_core
void grpc_handshake_manager_add(grpc_handshake_manager* mgr,
grpc_handshaker* handshaker) {
// This is a transition method to aid the API change for handshakers.
grpc_core::RefCountedPtr<grpc_core::Handshaker> refd_hs(
static_cast<grpc_core::Handshaker*>(handshaker));
mgr->Add(refd_hs);
}

@ -162,11 +162,4 @@ class HandshakeManager : public RefCounted<HandshakeManager> {
} // namespace grpc_core
// TODO(arjunroy): These are transitional to account for the new handshaker API
// and will eventually be removed entirely.
typedef grpc_core::HandshakeManager grpc_handshake_manager;
typedef grpc_core::Handshaker grpc_handshaker;
void grpc_handshake_manager_add(grpc_handshake_manager* mgr,
grpc_handshaker* handshaker);
#endif // GRPC_SRC_CORE_LIB_TRANSPORT_HANDSHAKER_H

Loading…
Cancel
Save