From 3152d7fec321ba099f10c83bc53ca5a6cf6b933a Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 24 Feb 2017 14:40:44 +0100 Subject: [PATCH] remove deprecated API --- transport/internet/system_dialer.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/transport/internet/system_dialer.go b/transport/internet/system_dialer.go index f5cb0b49..c843d9a0 100644 --- a/transport/internet/system_dialer.go +++ b/transport/internet/system_dialer.go @@ -67,14 +67,6 @@ func UseAlternativeSystemDialer(dialer SystemDialer) { effectiveSystemDialer = dialer } -// SubstituteDialer replaces the current system dialer with a given one. -// Caller must ensure there is no race condition. -// @Deprecated: Use UseAlternativeSimpleSystemDialer. -func SubstituteDialer(dialer SystemDialerAdapter) error { - UseAlternativeSystemDialer(WithAdapter(dialer)) - return nil -} - func init() { effectiveSystemDialer = &DefaultSystemDialer{} }