refactor: remove unused import and simplify filename handling in ModelHashIndex, fixes #342

This commit is contained in:
Will Miao
2025-08-06 19:11:07 +08:00
parent 2c6f9d8602
commit e6b94c7b21
2 changed files with 0 additions and 3 deletions

View File

@@ -199,8 +199,6 @@ class ModelHashIndex:
def get_hash_by_filename(self, filename: str) -> Optional[str]:
"""Get hash for a filename without extension"""
# Strip extension if present to make the function more flexible
filename = os.path.splitext(filename)[0]
return self._filename_to_hash.get(filename)
def clear(self) -> None: