From de8e708088fb2965db9d63d49d19f72af46114d8 Mon Sep 17 00:00:00 2001 From: Christian Weimann Date: Tue, 14 Jan 2025 03:50:51 +0100 Subject: [PATCH] refactor(SceneMgr): inline scene initialization method --- SceneMgr.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/SceneMgr.js b/SceneMgr.js index 1424276..e4db850 100644 --- a/SceneMgr.js +++ b/SceneMgr.js @@ -20,12 +20,7 @@ class SceneMgr { log.info('Initialization of SceneMgr'); // Initialize the scenes map by reducing the array of scenes into an object with unique IDs as keys. - this.scenes = this.initializeScenes(); - } - - // Helper method to initialize scenes using reduce. - initializeScenes() { - return this.getScenes().reduce((scenes, scene) => { + this.scenes = this.getScenes().reduce((scenes, scene) => { const sceneUID = scene.getUID(); scenes[sceneUID] = new Scene(scene); return scenes;