Skip to content

Commit

Permalink
no longer need this function
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiculescu authored and ColinDKelley committed Dec 31, 2020
1 parent 66e646a commit 8653d13
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/listen/record.rb
Expand Up @@ -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
Expand Down

0 comments on commit 8653d13

Please sign in to comment.