From 268da885ee7b006e3b5d3509b783a487643fe127 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 10 Oct 2019 14:48:46 +0200 Subject: [PATCH] Remove unused _loadAll function This one is no longer used since we no longer load all stacks upon start-up. Contributes to issue CURA-6793. --- cura/Machines/ContainerTree.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cura/Machines/ContainerTree.py b/cura/Machines/ContainerTree.py index bb5669ad61..4f64b6ad40 100644 --- a/cura/Machines/ContainerTree.py +++ b/cura/Machines/ContainerTree.py @@ -73,18 +73,6 @@ class ContainerTree: extruder_enabled = [extruder.isEnabled for extruder in global_stack.extruderList] return self.machines[global_stack.definition.getId()].getQualityChangesGroups(variant_names, material_bases, extruder_enabled) - ## Builds the initial container tree. - def _loadAll(self): - Logger.log("i", "Building container tree.") - start_time = time.time() - all_stacks = ContainerRegistry.getInstance().findContainerStacks() - for stack in all_stacks: - if not isinstance(stack, GlobalStack): - continue # Only want to load global stacks. We don't need to create a tree for extruder definitions. - _ = self.machines[stack.definition.getId()] # TODO: Load this lazily. - - Logger.log("d", "Building the container tree took %s seconds", time.time() - start_time) - ## Ran after completely starting up the application. def _onStartupFinished(self): JobQueue.getInstance().add(self.MachineNodeLoadJob(self))