Revert "fix: Add debug logging to get_ident_filename_matches method"

This reverts commit 55fcbc958d.
This commit is contained in:
Paul Gauthier 2024-08-05 16:07:26 -03:00
parent 793035b2e0
commit a85ccc26bc

View file

@ -489,23 +489,18 @@ class Coder:
return words
def get_ident_filename_matches(self, idents):
dump(idents)
all_fnames = defaultdict(set)
for fname in self.get_all_relative_files():
base = Path(fname).with_suffix("").name.lower()
if len(base) >= 5:
all_fnames[base].add(fname)
dump(len(all_fnames))
matches = set()
for ident in idents:
if len(ident) < 5:
continue
matches.update(all_fnames[ident.lower()])
dump(matches)
return matches
def get_repo_map(self):