diff options
author | Jaime van Kessel <nallath@gmail.com> | 2019-06-28 16:09:08 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2019-06-28 16:09:08 +0300 |
commit | 691d10671917e39314ff0ec061c4febabc74c434 (patch) | |
tree | a6b01e0a095415ebc66a01324c2e0b1cbfcf369b | |
parent | f329d7aed90d86e663dc3cce69d029b4f8e105de (diff) |
Remove old unused code
-rwxr-xr-x | cura/BuildVolume.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cura/BuildVolume.py b/cura/BuildVolume.py index c89768b122..ce7a5461bc 100755 --- a/cura/BuildVolume.py +++ b/cura/BuildVolume.py @@ -727,17 +727,9 @@ class BuildVolume(SceneNode): self._error_areas = [] - extruder_manager = ExtruderManager.getInstance() - used_extruders = extruder_manager.getUsedExtruderStacks() + used_extruders = ExtruderManager.getInstance().getUsedExtruderStacks() disallowed_border_size = self.getEdgeDisallowedSize() - if not used_extruders: - # If no extruder is used, assume that the active extruder is used (else nothing is drawn) - if extruder_manager.getActiveExtruderStack(): - used_extruders = [extruder_manager.getActiveExtruderStack()] - else: - used_extruders = [self._global_container_stack] - result_areas = self._computeDisallowedAreasStatic(disallowed_border_size, used_extruders) # Normal machine disallowed areas can always be added. prime_areas = self._computeDisallowedAreasPrimeBlob(disallowed_border_size, used_extruders) result_areas_no_brim = self._computeDisallowedAreasStatic(0, used_extruders) # Where the priming is not allowed to happen. This is not added to the result, just for collision checking. |