depcheck.py: delete unused functions
authorHelmut Grohne <helmut@subdivi.de>
Fri, 9 Oct 2020 20:48:39 +0000 (22:48 +0200)
committerHelmut Grohne <helmut@subdivi.de>
Fri, 9 Oct 2020 20:48:39 +0000 (22:48 +0200)
depcheck.py

index e3f3815..7d2a8dc 100755 (executable)
@@ -192,21 +192,6 @@ class DebianMirror:
         self.byhash = None
         self.files = {}
 
-    @staticmethod
-    def get_all_keyrings():
-        yield "/etc/apt/trusted.gpg"
-        partsdir = "/etc/apt/trusted.gpg.d"
-        try:
-            for e in os.listdir(partsdir):
-                yield os.path.join(partsdir, e)
-        except FileNotFoundError:
-            pass
-
-    @staticmethod
-    def get_keyrings():
-        return filter(lambda f: os.access(f, os.R_OK),
-                      DebianMirror.get_all_keyrings())
-
     def get_uri(self, filename):
         return "%s/dists/%s/%s" % (self.uri, self.dist, filename)