From 820a78a10f07eb29ccecbec75a69829c573176fb Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Thu, 18 Apr 2019 05:07:39 +0200 Subject: [PATCH] Remove dead code --- restic_volume_backup/containers.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/restic_volume_backup/containers.py b/restic_volume_backup/containers.py index 126bdbd..5b7f68b 100644 --- a/restic_volume_backup/containers.py +++ b/restic_volume_backup/containers.py @@ -234,21 +234,6 @@ class RunningContainers: if container.id != self.this_container.id: self.containers.append(container) - # def gen_volumes(self, volume_type): - # """Generator yielding volumes of a specific type""" - # for cont in self.containers: - # for mnt in cont.mounts: - # if mnt.type == volume_type: - # yield mnt - - # def volume_mounts(self): - # """Docker volumes""" - # return set(mnt for mnt in self.gen_volumes(VOLUME_TYPE_VOLUME)) - - # def bind_mounts(self): - # """Host mapped volumes""" - # return set(mnt for mnt in self.gen_volumes(VOLUME_TYPE_BIND)) - @property def backup_process_running(self) -> bool: """Is the backup process container running?"""