summaryrefslogtreecommitdiff
path: root/ick2/persistent.py
diff options
context:
space:
mode:
Diffstat (limited to 'ick2/persistent.py')
-rw-r--r--ick2/persistent.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/ick2/persistent.py b/ick2/persistent.py
index c5e2840..1d79e3d 100644
--- a/ick2/persistent.py
+++ b/ick2/persistent.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2018 Lars Wirzenius
+# Copyright (C) 2018-2019 Lars Wirzenius
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
@@ -27,9 +27,6 @@ import ick2
class PersistentStateInterface: # pragma: no cover
- def get_resource_kinds(self):
- raise NotImplementedError()
-
def get_resource_ids(self, kind):
raise NotImplementedError()
@@ -79,9 +76,6 @@ class FilePersistentState(PersistentStateInterface):
dirname = self._dirname(kind)
return os.path.join(dirname, self._safe(rid))
- def get_resource_kinds(self):
- return self._unsafe_list(os.listdir(self._dir))
-
def has_resource(self, kind, rid):
filename = self._filename(kind, rid)
return os.path.exists(filename)