mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
remove unused code
This commit is contained in:
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
Block a user