Remove commented out code

This commit is contained in:
Kostas Karmas 2021-04-22 15:16:46 +02:00 committed by Jaime van Kessel
parent 1347471fea
commit 9b58bf0490
No known key found for this signature in database
GPG key ID: 3710727397403C91
2 changed files with 0 additions and 14 deletions

View file

@ -339,7 +339,6 @@ class DigitalFactoryController(QObject):
self.setCreatingNewProjectStatus(RetrievalStatus.Failed) self.setCreatingNewProjectStatus(RetrievalStatus.Failed)
Logger.log("e", "Something went wrong while trying to create a new a project. Error: {}".format(reply_string)) Logger.log("e", "Something went wrong while trying to create a new a project. Error: {}".format(reply_string))
# The new_status type is actually "RetrievalStatus" but since the RetrievalStatus cannot be an enum, we leave it as int
def setRetrievingProjectsStatus(self, new_status: RetrievalStatus) -> None: def setRetrievingProjectsStatus(self, new_status: RetrievalStatus) -> None:
""" """
Sets the status of the "retrieving library projects" http call. Sets the status of the "retrieving library projects" http call.
@ -353,7 +352,6 @@ class DigitalFactoryController(QObject):
def retrievingProjectsStatus(self) -> int: def retrievingProjectsStatus(self) -> int:
return int(self.retrieving_projects_status) return int(self.retrieving_projects_status)
# The new_status type is actually "RetrievalStatus" but since the RetrievalStatus cannot be an enum, we leave it as int
def setRetrievingFilesStatus(self, new_status: RetrievalStatus) -> None: def setRetrievingFilesStatus(self, new_status: RetrievalStatus) -> None:
""" """
Sets the status of the "retrieving files list in the selected library project" http call. Sets the status of the "retrieving files list in the selected library project" http call.
@ -367,7 +365,6 @@ class DigitalFactoryController(QObject):
def retrievingFilesStatus(self) -> int: def retrievingFilesStatus(self) -> int:
return int(self.retrieving_files_status) return int(self.retrieving_files_status)
# The new_status type is actually "RetrievalStatus" but since the RetrievalStatus cannot be an enum, we leave it as int
def setCreatingNewProjectStatus(self, new_status: RetrievalStatus) -> None: def setCreatingNewProjectStatus(self, new_status: RetrievalStatus) -> None:
""" """
Sets the status of the "creating new library project" http call. Sets the status of the "creating new library project" http call.
@ -388,16 +385,6 @@ class DigitalFactoryController(QObject):
def _applicationInitializationFinished(self) -> None: def _applicationInitializationFinished(self) -> None:
self._supported_file_types = self._application.getInstance().getMeshFileHandler().getSupportedFileTypesRead() self._supported_file_types = self._application.getInstance().getMeshFileHandler().getSupportedFileTypesRead()
# @pyqtSlot("QList<int>")
# def setSelectedFileIndices(self, file_indices: List[int]) -> None:
# """
# Sets the index of the file which is currently selected in the list of files.
#
# :param file_indices: A list of the indices of the currently selected files
# """
# self._selected_file_indices = file_indices
# self.selectedFileIndicesChanged.emit(file_indices)
@pyqtSlot() @pyqtSlot()
def openSelectedFiles(self) -> None: def openSelectedFiles(self) -> None:
""" Downloads, then opens all files selected in the Qt frontend open dialog. """ Downloads, then opens all files selected in the Qt frontend open dialog.

View file

@ -31,7 +31,6 @@ class DigitalFactoryFileProvider(FileProvider):
Function called every time the 'From Digital Factory' option of the 'Open File(s)' submenu is triggered Function called every time the 'From Digital Factory' option of the 'Open File(s)' submenu is triggered
""" """
self.loadWindow() self.loadWindow()
print("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa")
if self._account.isLoggedIn and self._controller.userAccountHasLibraryAccess(): if self._account.isLoggedIn and self._controller.userAccountHasLibraryAccess():
self._controller.initialize() self._controller.initialize()