1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00

remove deprecated API

This commit is contained in:
Darien Raymond 2017-02-24 14:40:44 +01:00
parent dde6d89004
commit 3152d7fec3
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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{}
}