Remove dead code

This commit is contained in:
Kristan Schlikow
2025-02-14 20:00:15 +01:00
parent 2445b6d9dc
commit a4c124dff0

View File

@ -941,19 +941,6 @@ function logSecurityAlert(message) {
process.exit(1);
}
/**
* Prints a warning message
* @param {string} message The warning message to print
* @returns {void}
*/
function logSecurityWarning(message) {
if (basicAuthMode || enableWhitelist) return; // safe!
console.error(color.yellow(message));
if (getConfigValue('securityOverride', false)) {
console.warn(color.red('Security has been overridden. If it\'s not a trusted network, change the settings.'));
}
}
/**
* Handles the case where the server failed to start on one or both protocols.
* @param {boolean} v6Failed If the server failed to start on IPv6