mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 13:18:53 +00:00
all: cleanup unused code, part 2 (#10670)
And enable U1000 check in staticcheck. Updates #cleanup Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
This commit is contained in:
@@ -220,13 +220,6 @@ func (m *Monitor) RegisterRuleDeleteCallback(callback RuleDeleteCallback) (unreg
|
||||
}
|
||||
}
|
||||
|
||||
// isActive reports whether this monitor has been started and not yet closed.
|
||||
func (m *Monitor) isActive() bool {
|
||||
m.mu.Lock()
|
||||
defer m.mu.Unlock()
|
||||
return m.started && !m.closed
|
||||
}
|
||||
|
||||
// Start starts the monitor.
|
||||
// A monitor can only be started & closed once.
|
||||
func (m *Monitor) Start() {
|
||||
|
@@ -181,3 +181,10 @@ func (m *winMon) somethingChanged(evt string) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// isActive reports whether this monitor has been started and not yet closed.
|
||||
func (m *Monitor) isActive() bool {
|
||||
m.mu.Lock()
|
||||
defer m.mu.Unlock()
|
||||
return m.started && !m.closed
|
||||
}
|
||||
|
Reference in New Issue
Block a user