Sfoglia il codice sorgente

archive: delete unused Archive.list_archives

Marian Beermann 7 anni fa
parent
commit
a88519d540
1 ha cambiato i file con 0 aggiunte e 6 eliminazioni
  1. 0 6
      src/borg/archive.py

+ 0 - 6
src/borg/archive.py

@@ -807,12 +807,6 @@ Utilization of max. archive size: {csize_max:.0%}
             logger.warning('forced deletion succeeded, but the deleted archive was corrupted.')
             logger.warning('borg check --repair is required to free all space.')
 
-    @staticmethod
-    def list_archives(repository, key, manifest, cache=None):
-        # expensive! see also Manifest.list_archive_infos.
-        for name in manifest.archives:
-            yield Archive(repository, key, manifest, name, cache=cache)
-
     @staticmethod
     def _open_rb(path):
         try: