Remove deprecated currentExtruderPositions

CURA-6858
This commit is contained in:
Lipu Fei 2019-10-22 13:51:02 +02:00
parent c62ff262ed
commit 227b76d6f0
3 changed files with 9 additions and 12 deletions

View file

@ -1078,13 +1078,6 @@ class MachineManager(QObject):
container = extruder.userChanges
container.removeInstance(setting_name)
@pyqtProperty("QVariantList", notify = globalContainerChanged)
@deprecated("use Cura.MachineManager.activeMachine.extruders instead", "4.2")
def currentExtruderPositions(self) -> List[str]:
if self._global_container_stack is None:
return []
return sorted(list(self._global_container_stack.extruders.keys()))
## Update _current_root_material_id when the current root material was changed.
def _onRootMaterialChanged(self) -> None:
self._current_root_material_id = {}