Method: FSEvent::WatchSet#delete_watcher

Defined in:
lib/fsevent/watchset.rb

#delete_watcher(watcher_device_name) ⇒ Object



119
120
121
122
123
124
125
126
127
128
129
130
131
132
# File 'lib/fsevent/watchset.rb', line 119

def delete_watcher(watcher_device_name)
  @watch_defs.delete watcher_device_name

  [@watch_exact_exact,
   @watch_exact_prefix,
   @watch_prefix_exact,
   @watch_prefix_prefix].each {|h0|
    h0.each {|watchee_device_name, h1|
      h1.each {|status_name, h2|
        h2.delete watcher_device_name
      }
    }
  }
end