Remove unused function

This commit is contained in:
Girish Ramakrishnan
2019-03-02 19:31:19 -08:00
parent ea30cbe117
commit e5964f9d93

View File

@@ -14,7 +14,6 @@ exports = module.exports = {
getCertificate: getCertificate,
ensureCertificate: ensureCertificate,
renewAll: renewAll,
renewCerts: renewCerts,
// the 'configure' functions always ensure a certificate
@@ -585,7 +584,7 @@ function renewCerts(options, auditSource, progressCallback, callback) {
else return iteratorCallback(new Error(`Unknown domain type for ${appDomain.fqdn}. This should never happen`));
configureFunc(function (ignoredError) {
if (ignoredError) debug('renewAll: error reconfiguring app', ignoredError);
if (ignoredError) debug('renewCerts: error reconfiguring app', ignoredError);
platform.handleCertChanged(appDomain.fqdn, iteratorCallback);
});
@@ -594,15 +593,6 @@ function renewCerts(options, auditSource, progressCallback, callback) {
});
}
function renewAll(auditSource, callback) {
assert.strictEqual(typeof auditSource, 'object');
assert.strictEqual(typeof callback, 'function');
debug('renewAll: Checking certificates for renewal');
renewCerts({}, auditSource, callback);
}
function removeAppConfigs() {
for (let appConfigFile of fs.readdirSync(paths.NGINX_APPCONFIG_DIR)) {
if (appConfigFile !== constants.NGINX_DEFAULT_CONFIG_FILE_NAME && !appConfigFile.startsWith(constants.ADMIN_LOCATION)) {