Cleanup extruder manager

Few more unused functions removed & simplified.
It also fixes a few more typing issues that I encountered.
This commit is contained in:
Jaime van Kessel 2018-09-07 17:06:18 +02:00
parent e6d0a9cc6a
commit 5c6c299b27
3 changed files with 14 additions and 30 deletions

View file

@ -275,7 +275,7 @@ class FlavorParser:
## For showing correct x, y offsets for each extruder
def _extruderOffsets(self) -> Dict[int, List[float]]:
result = {}
for extruder in ExtruderManager.getInstance().getExtruderStacks():
for extruder in ExtruderManager.getInstance().getActiveExtruderStacks():
result[int(extruder.getMetaData().get("position", "0"))] = [
extruder.getProperty("machine_nozzle_offset_x", "value"),
extruder.getProperty("machine_nozzle_offset_y", "value")]