aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/managers/imports-manager.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--server/src/serverLib/ImportsManager.js (renamed from server/src/managers/imports-manager.js)29
1 files changed, 1 insertions, 28 deletions
diff --git a/server/src/managers/imports-manager.js b/server/src/serverLib/ImportsManager.js
index d8b2144..a049d5c 100644
--- a/server/src/managers/imports-manager.js
+++ b/server/src/serverLib/ImportsManager.js
@@ -14,24 +14,12 @@ class ImportsManager {
/**
* Create a `ImportsManager` instance for (re)loading classes and config
*
- * @param {Object} core reference to the global core object
* @param {String} base executing directory name; __dirname
*/
- constructor (core, base) {
- this._core = core;
+ constructor (base) {
this._base = base;
this._imports = {};
- this._optionalConfigs = {};
- }
-
- /**
- * Pull core reference
- *
- * @type {Object} readonly
- */
- get core () {
- return this._core;
}
/**
@@ -44,15 +32,6 @@ class ImportsManager {
}
/**
- * Pull optional (none-core) config options
- *
- * @type {Object}
- */
- get optionalConfigs () {
- return Object.assign({}, this._optionalConfigs);
- }
-
- /**
* Initialize this class and start loading target directories
*
*/
@@ -89,12 +68,6 @@ class ImportsManager {
return errorText;
}
- if (imported.configs) {
- imported.configs.forEach(config => {
- this._optionalConfigs[config.name] = config;
- });
- }
-
if (!this._imports[dirName]) {
this._imports[dirName] = {};
}