diff --git a/src/reverseproxy.js b/src/reverseproxy.js index 6895fb204..332a8aea7 100644 --- a/src/reverseproxy.js +++ b/src/reverseproxy.js @@ -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)) {