diff --git a/dvc/state.py b/dvc/state.py index 2827c64cb9..88d8e69336 100644 --- a/dvc/state.py +++ b/dvc/state.py @@ -34,11 +34,6 @@ class StateBase(ABC): def __init__(self): self.count = 0 - @property - @abstractmethod - def files(self): - pass - @abstractmethod def save(self, path_info, hash_info): pass @@ -72,10 +67,6 @@ def __exit__(self, typ, value, tbck): class StateNoop(StateBase): - @property - def files(self): - return [] - def save(self, path_info, hash_info): pass @@ -153,20 +144,10 @@ def __init__(self, repo): self.state_file = os.path.join(repo.tmp_dir, self.STATE_FILE) - # https://www.sqlite.org/tempfiles.html - self.temp_files = [ - self.state_file + "-journal", - self.state_file + "-wal", - ] - self.database = None self.cursor = None self.inserts = 0 - @property - def files(self): - return self.temp_files + [self.state_file] - def _execute(self, cmd, parameters=()): logger.trace(cmd) return self.cursor.execute(cmd, parameters)