dvc.objects: remove unused callback (#6638)

This commit is contained in:
Saugat Pachhai
2021-09-17 13:39:54 +03:00
committed by GitHub
parent 978d5ac227
commit 73088fc7b9
-5
View File
@@ -97,7 +97,6 @@ class ObjectDB:
hash_info: "HashInfo",
move: bool = True,
verify: Optional[bool] = None,
**kwargs,
):
if self.read_only:
raise ObjectDBPermissionError("Cannot add to read-only ODB")
@@ -121,10 +120,6 @@ class ObjectDB:
except (ObjectFormatError, FileNotFoundError):
pass
callback = kwargs.get("download_callback")
if callback:
callback(1)
def hash_to_path_info(self, hash_) -> "DvcPath":
return self.path_info / hash_[0:2] / hash_[2:]