mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
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:
parent
c5b957d0b1
commit
268da885ee
1 changed files with 0 additions and 12 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue