Skip to content

Commit

Permalink
state: remove unused files (#5474)
Browse files Browse the repository at this point in the history
They've been used before we've moved state to .dvc/tmp
  • Loading branch information
efiop authored Feb 16, 2021
1 parent 53ba51b commit ae8efde
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions dvc/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ae8efde

Please sign in to comment.