mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
Remove unused code
I'm not sure why loadConfigurationFromPrinter is not used... but it's not. Contributes to CL-1331
This commit is contained in:
parent
b3276777b7
commit
f7ef24819d
1 changed files with 0 additions and 27 deletions
|
@ -108,33 +108,11 @@ class DiscoverUM3Action(MachineAction):
|
||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
# # TODO: Should be able to just access the API from QML.
|
|
||||||
# @pyqtSlot(str)
|
|
||||||
# def setGroupName(self, group_name: str) -> None:
|
|
||||||
# self._api.machines.setCurrentMachineGroupName(group_name)
|
|
||||||
# if self._network_plugin:
|
|
||||||
# self._network_plugin.refreshConnections()
|
|
||||||
|
|
||||||
# # TODO: Should be able to just access the API from QML.
|
|
||||||
# @pyqtSlot(QObject)
|
|
||||||
# def associateActiveMachineWithPrinterDevice(self, output_device: Optional["PrinterOutputDevice"]) -> None:
|
|
||||||
# self._api.machines.addOutputDeviceToCurrentMachine(output_device)
|
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def refreshConnections(self) -> None:
|
def refreshConnections(self) -> None:
|
||||||
if self._network_plugin:
|
if self._network_plugin:
|
||||||
self._network_plugin.refreshConnections()
|
self._network_plugin.refreshConnections()
|
||||||
|
|
||||||
# # TODO: Better naming needed. Stored where? This is current machine's key.
|
|
||||||
# # TODO: CHANGE TO HOSTNAME
|
|
||||||
# # TODO: Should be able to just access the API from QML.
|
|
||||||
# @pyqtSlot(result = str)
|
|
||||||
# def getStoredKey(self) -> str:
|
|
||||||
# current_machine = self._api.machines.getCurrentMachine()
|
|
||||||
# if current_machine:
|
|
||||||
# return current_machine["um_network_key"]
|
|
||||||
# return ""
|
|
||||||
|
|
||||||
# TODO: CHANGE TO HOSTNAME
|
# TODO: CHANGE TO HOSTNAME
|
||||||
@pyqtSlot(result = str)
|
@pyqtSlot(result = str)
|
||||||
def getLastManualEntryKey(self) -> str:
|
def getLastManualEntryKey(self) -> str:
|
||||||
|
@ -150,11 +128,6 @@ class DiscoverUM3Action(MachineAction):
|
||||||
containers = CuraContainerRegistry.getInstance().findContainerStacks(type="machine", **metadata_filter)
|
containers = CuraContainerRegistry.getInstance().findContainerStacks(type="machine", **metadata_filter)
|
||||||
return bool(containers)
|
return bool(containers)
|
||||||
|
|
||||||
# TODO: Should be able to just access the API from QML.
|
|
||||||
@pyqtSlot()
|
|
||||||
def loadConfigurationFromPrinter(self) -> None:
|
|
||||||
self._api.machines.updateCurrentMachineConfiguration()
|
|
||||||
|
|
||||||
def _createAdditionalComponentsView(self) -> None:
|
def _createAdditionalComponentsView(self) -> None:
|
||||||
Logger.log("d", "Creating additional ui components for UM3.")
|
Logger.log("d", "Creating additional ui components for UM3.")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue