mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 21:58:01 -06:00
Remove unused functions in ExtruderManager
This commit is contained in:
parent
7a681a2ae4
commit
3c8368827b
1 changed files with 0 additions and 10 deletions
|
@ -67,16 +67,6 @@ class ExtruderManager(QObject):
|
||||||
except KeyError: # Extruder index could be -1 if the global tab is selected, or the entry doesn't exist if the machine definition is wrong.
|
except KeyError: # Extruder index could be -1 if the global tab is selected, or the entry doesn't exist if the machine definition is wrong.
|
||||||
return None
|
return None
|
||||||
|
|
||||||
## Return extruder count according to extruder trains.
|
|
||||||
@pyqtProperty(int, notify = extrudersChanged)
|
|
||||||
def extruderCount(self) -> int:
|
|
||||||
if not self._application.getGlobalContainerStack():
|
|
||||||
return 0 # No active machine, so no extruders.
|
|
||||||
try:
|
|
||||||
return len(self._extruder_trains[self._application.getGlobalContainerStack().getId()])
|
|
||||||
except KeyError:
|
|
||||||
return 0
|
|
||||||
|
|
||||||
## Gets a dict with the extruder stack ids with the extruder number as the key.
|
## Gets a dict with the extruder stack ids with the extruder number as the key.
|
||||||
@pyqtProperty("QVariantMap", notify = extrudersChanged)
|
@pyqtProperty("QVariantMap", notify = extrudersChanged)
|
||||||
def extruderIds(self) -> Dict[str, str]:
|
def extruderIds(self) -> Dict[str, str]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue