From 269c653adcdcc2e3ef32d7e311442a723f62dfc6 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 14 Jul 2019 12:31:05 +0300 Subject: Drop: unused PersistentState.get_resource_kinds method --- ick2/persistent.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'ick2/persistent.py') 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) -- cgit v1.2.1