mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 10:49:03 +08:00
Remove unused code
This commit is contained in:
parent
884a3ea819
commit
c76c183c6b
@ -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…
x
Reference in New Issue
Block a user