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.
This commit is contained in:
Ghostkeeper 2019-10-10 14:48:46 +02:00
parent c5b957d0b1
commit 268da885ee
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -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))