mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
remove deprecated API
This commit is contained in:
@@ -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{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user