1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-04 08:15:21 -05:00

remove clock feature

This commit is contained in:
Darien Raymond
2018-02-16 15:54:53 +01:00
parent 95be224caf
commit 2789798390
2 changed files with 0 additions and 67 deletions

View File

@@ -28,7 +28,6 @@ type Instance struct {
router syncRouter
ihm syncInboundHandlerManager
ohm syncOutboundHandlerManager
clock syncClock
cmd syncCommander
access sync.Mutex
@@ -148,8 +147,6 @@ func (s *Instance) RegisterFeature(feature interface{}, instance Feature) error
s.ihm.Set(instance.(InboundHandlerManager))
case OutboundHandlerManager, *OutboundHandlerManager:
s.ohm.Set(instance.(OutboundHandlerManager))
case Clock, *Clock:
s.clock.Set(instance.(Clock))
case Commander, *Commander:
s.cmd.Set(instance.(Commander))
}
@@ -206,11 +203,6 @@ func (s *Instance) OutboundHandlerManager() OutboundHandlerManager {
return &(s.ohm)
}
// Clock returns the Clock used by this Instance. The returned Clock is always functional.
func (s *Instance) Clock() Clock {
return &(s.clock)
}
// Commander returns the Commander used by this Instance. The returned Commander is always functional.
func (s *Instance) Commander() Commander {
return &(s.cmd)