From 8653d1395c9e60a49d2fb201ffd41db8d424fa08 Mon Sep 17 00:00:00 2001 From: Alex Ghiculescu Date: Tue, 22 Dec 2020 10:39:23 -0600 Subject: [PATCH] no longer need this function --- lib/listen/record.rb | 13 ------------- 1 file changed, 13 deletions(-) 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