mirror of https://github.com/v2ray/v2ray-core
remove unused code
parent
4b725c61d1
commit
98b5b415f0
|
@ -52,11 +52,3 @@ func CancelAfterInactivity(ctx context.Context, timeout time.Duration) (context.
|
||||||
go timer.run()
|
go timer.run()
|
||||||
return ctx, timer
|
return ctx, timer
|
||||||
}
|
}
|
||||||
|
|
||||||
type noOpActivityTimer struct{}
|
|
||||||
|
|
||||||
func (noOpActivityTimer) Update() {}
|
|
||||||
|
|
||||||
func BackgroundTimer() ActivityTimer {
|
|
||||||
return noOpActivityTimer{}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue