Skip to content

Commit

Permalink
Remove quality, variant and material manager
Browse files Browse the repository at this point in the history
We don't use them any more and they are deprecated.

Removing them removes a lot of maintenance.

Contributes to issue CURA-6801.
  • Loading branch information
Ghostkeeper committed Oct 16, 2019
1 parent 86ff744 commit 9b836d9
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 995 deletions.
17 changes: 0 additions & 17 deletions cura/CuraApplication.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@

from cura.Machines.ContainerTree import ContainerTree
from cura.Machines.MachineErrorChecker import MachineErrorChecker
import cura.Machines.MaterialManager #Imported like this to prevent circular imports.
import cura.Machines.QualityManager #Imported like this to prevent circular imports.
from cura.Machines.VariantManager import VariantManager

from cura.Machines.Models.BuildPlateModel import BuildPlateModel
from cura.Machines.Models.CustomQualityProfilesDropDownMenuModel import CustomQualityProfilesDropDownMenuModel
Expand Down Expand Up @@ -924,20 +921,6 @@ def getExtruderManager(self, *args) -> ExtruderManager:
self._extruder_manager = ExtruderManager()
return self._extruder_manager

@deprecated("Use the ContainerTree structure instead.", since = "4.3")
def getVariantManager(self, *args) -> VariantManager:
return VariantManager.getInstance()

# Can't deprecate this function since the deprecation marker collides with pyqtSlot!
@pyqtSlot(result = QObject)
def getMaterialManager(self, *args) -> cura.Machines.MaterialManager.MaterialManager:
return cura.Machines.MaterialManager.MaterialManager.getInstance()

# Can't deprecate this function since the deprecation marker collides with pyqtSlot!
@pyqtSlot(result = QObject)
def getQualityManager(self, *args) -> cura.Machines.QualityManager.QualityManager:
return cura.Machines.QualityManager.QualityManager.getInstance()

def getIntentManager(self, *args) -> IntentManager:
return IntentManager.getInstance()

Expand Down
349 changes: 0 additions & 349 deletions cura/Machines/MaterialManager.py

This file was deleted.

Loading

0 comments on commit 9b836d9

Please sign in to comment.