From 549f0eccf90d71a5a0bc93ce1a01281ad10ace05 Mon Sep 17 00:00:00 2001 From: Nick Fong Date: Mon, 7 Nov 2016 11:36:58 -0800 Subject: [PATCH] Remove get_all_certs_keys() from interfaces.py (#3753) - Remove method 'get_all_certs_keys()' from interfaces.py - Also remove 'get_all_certs_keys()' from plugins/null.py and corresponding unit test --- certbot/interfaces.py | 13 ------------- certbot/plugins/null.py | 3 --- certbot/plugins/null_test.py | 1 - 3 files changed, 17 deletions(-) diff --git a/certbot/interfaces.py b/certbot/interfaces.py index 5872c38d8..337bb3238 100644 --- a/certbot/interfaces.py +++ b/certbot/interfaces.py @@ -300,19 +300,6 @@ class IInstaller(IPlugin): """ - def get_all_certs_keys(): - """Retrieve all certs and keys set in configuration. - - :returns: tuples with form `[(cert, key, path)]`, where: - - - `cert` - str path to certificate file - - `key` - str path to associated key file - - `path` - file path to configuration file - - :rtype: list - - """ - def save(title=None, temporary=False): """Saves all changes to the configuration files. diff --git a/certbot/plugins/null.py b/certbot/plugins/null.py index 995b96274..87c0737a5 100644 --- a/certbot/plugins/null.py +++ b/certbot/plugins/null.py @@ -40,9 +40,6 @@ class Installer(common.Plugin): def supported_enhancements(self): return [] - def get_all_certs_keys(self): - return [] - def save(self, title=None, temporary=False): pass # pragma: no cover diff --git a/certbot/plugins/null_test.py b/certbot/plugins/null_test.py index 305954a2f..0d04a2bc5 100644 --- a/certbot/plugins/null_test.py +++ b/certbot/plugins/null_test.py @@ -15,7 +15,6 @@ class InstallerTest(unittest.TestCase): self.assertTrue(isinstance(self.installer.more_info(), str)) self.assertEqual([], self.installer.get_all_names()) self.assertEqual([], self.installer.supported_enhancements()) - self.assertEqual([], self.installer.get_all_certs_keys()) if __name__ == "__main__":