Remove some deprecated/unnecessary code (#9688)

* refactor: remove mkdirp promisify

* refactor: remove old session deletion API route

* refactor: remove middleware.isAdmin

* refactor: remove templateValues.config.bootswatchSkin

* fix: unused dependencies
This commit is contained in:
Opliko
2021-08-02 04:03:19 +02:00
committed by GitHub
parent 9db28b4b4f
commit d509a307f0
4 changed files with 1 additions and 61 deletions

View File

@@ -101,7 +101,6 @@ middleware.renderHeader = async function renderHeader(req, res, data) {
results.user.isEmailConfirmSent = !!results.isEmailConfirmSent;
templateValues.bootswatchSkin = (parseInt(meta.config.disableCustomUserSkins, 10) !== 1 ? res.locals.config.bootswatchSkin : '') || meta.config.bootswatchSkin || '';
templateValues.config.bootswatchSkin = templateValues.bootswatchSkin || 'noskin'; // TODO remove in v1.12.0+
templateValues.browserTitle = results.browserTitle;
({
navigation: templateValues.navigation,