diff --git a/lib/listen/record.rb b/lib/listen/record.rb index eb0e2794..85572cd4 100644 --- a/lib/listen/record.rb +++ b/lib/listen/record.rb @@ -58,19 +58,6 @@ def dir_entries(rel_path) end end - def _sub_tree(rel_path) - @tree.each_with_object({}) do |(path, meta), result| - next unless path.start_with?(rel_path) - - if path == rel_path - result.merge!(meta) - else - sub_path = path.sub(%r{\A#{rel_path}/?}, '') - result[sub_path] = meta - end - end - end - def build @tree = _auto_hash # TODO: test with a file name given