func (w *Watcher) remove(d *structs.Deployment) {
	w.l.Lock()
	defer w.l.Unlock()

	// Not enabled so no-op
	if !w.enabled {
		return
	}

	if watcher, ok := w.watchers[d.ID]; ok {
		watcher.StopWatch()
		delete(w.watchers, d.ID)
	}
}
// remove stops watching a deployment. This can be because the deployment is
// complete or being deleted.
remove stops watching a deployment. This can be because the deployment is
complete or being deleted.
// remove stops watching a deployment . This can be because the deployment is // complete or being deleted .
func (w *Watcher) remove(d *structs.Deployment) {
	w.l.Lock()
	defer w.l.Unlock()
	if !w.enabled {
		return
	}
	if watcher, ok := w.watchers[d.ID]; ok {
		watcher.StopWatch()
		delete(w.watchers, d.ID)
	}
}
func ( w * Watcher ) remove ( d * structs . Deployment ) { w . l . Lock ( ) defer w . l . Unlock ( ) if ! w . enabled { return } if watcher , ok := w . watchers [ d . ID ] ; ok { watcher . StopWatch ( ) delete ( w . watchers , d . ID ) } }
remove stops watching a deployment.
remove stops watching a deployment .
// Not enabled so no-op