mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
Remove unused code
This commit is contained in:
parent
884a3ea819
commit
c76c183c6b
1 changed files with 0 additions and 8 deletions
|
@ -1433,15 +1433,11 @@ class MachineManager(QObject):
|
||||||
def setMaterialById(self, position: str, root_material_id: str) -> None:
|
def setMaterialById(self, position: str, root_material_id: str) -> None:
|
||||||
if self._global_container_stack is None:
|
if self._global_container_stack is None:
|
||||||
return
|
return
|
||||||
buildplate_name = None
|
|
||||||
if self._global_container_stack.variant.getId() != "empty_variant":
|
|
||||||
buildplate_name = self._global_container_stack.variant.getName()
|
|
||||||
|
|
||||||
machine_definition_id = self._global_container_stack.definition.id
|
machine_definition_id = self._global_container_stack.definition.id
|
||||||
position = str(position)
|
position = str(position)
|
||||||
extruder_stack = self._global_container_stack.extruders[position]
|
extruder_stack = self._global_container_stack.extruders[position]
|
||||||
nozzle_name = extruder_stack.variant.getName()
|
nozzle_name = extruder_stack.variant.getName()
|
||||||
material_diameter = extruder_stack.getApproximateMaterialDiameter()
|
|
||||||
material_node = ContainerTree.getInstance().machines[machine_definition_id].variants[nozzle_name].materials[root_material_id]
|
material_node = ContainerTree.getInstance().machines[machine_definition_id].variants[nozzle_name].materials[root_material_id]
|
||||||
self.setMaterial(position, material_node)
|
self.setMaterial(position, material_node)
|
||||||
|
|
||||||
|
@ -1625,7 +1621,3 @@ class MachineManager(QObject):
|
||||||
abbr_machine += stripped_word
|
abbr_machine += stripped_word
|
||||||
|
|
||||||
return abbr_machine
|
return abbr_machine
|
||||||
|
|
||||||
# Gets all machines that belong to the given group_id.
|
|
||||||
def getMachinesInGroup(self, group_id: str) -> List["GlobalStack"]:
|
|
||||||
return self._container_registry.findContainerStacks(type = "machine", group_id = group_id)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue