Browse Source

Remove unused "has_cloud_connection" variable

CURA-7436
Kostas Karmas 4 years ago
parent
commit
4e930b4d52
1 changed files with 0 additions and 3 deletions
  1. 0 3
      cura/Machines/Models/GlobalStacksModel.py

+ 0 - 3
cura/Machines/Models/GlobalStacksModel.py

@@ -58,12 +58,10 @@ class GlobalStacksModel(ListModel):
         container_stacks = CuraContainerRegistry.getInstance().findContainerStacks(type="machine")
         for container_stack in container_stacks:
             has_remote_connection = False
-            has_cloud_connection = False
 
             for connection_type in container_stack.configuredConnectionTypes:
                 has_remote_connection |= connection_type in [ConnectionType.NetworkConnection.value,
                                                              ConnectionType.CloudConnection.value]
-                has_cloud_connection |= connection_type == ConnectionType.CloudConnection.value
 
             if parseBool(container_stack.getMetaDataEntry("hidden", False)):
                 continue
@@ -81,7 +79,6 @@ class GlobalStacksModel(ListModel):
             items.append({"name": device_name,
                           "id": container_stack.getId(),
                           "hasRemoteConnection": has_remote_connection,
-                          "hasCloudConnection": has_cloud_connection,
                           "metadata": container_stack.getMetaData().copy(),
                           "discoverySource": section_name,
                           "removalWarning": removal_warning})