From 8f46a51ff2164c77dd5a3cfb3a88e8b570fd9968 Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Thu, 22 Apr 2021 15:16:46 +0200 Subject: [PATCH] Remove commented out code --- .../DigitalLibrary/src/DigitalFactoryController.py | 13 ------------- .../src/DigitalFactoryFileProvider.py | 1 - 2 files changed, 14 deletions(-) diff --git a/plugins/DigitalLibrary/src/DigitalFactoryController.py b/plugins/DigitalLibrary/src/DigitalFactoryController.py index 62f13be64c..33fcc506e7 100644 --- a/plugins/DigitalLibrary/src/DigitalFactoryController.py +++ b/plugins/DigitalLibrary/src/DigitalFactoryController.py @@ -339,7 +339,6 @@ class DigitalFactoryController(QObject): self.setCreatingNewProjectStatus(RetrievalStatus.Failed) 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: """ Sets the status of the "retrieving library projects" http call. @@ -353,7 +352,6 @@ class DigitalFactoryController(QObject): def retrievingProjectsStatus(self) -> int: 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: """ 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: 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: """ Sets the status of the "creating new library project" http call. @@ -388,16 +385,6 @@ class DigitalFactoryController(QObject): def _applicationInitializationFinished(self) -> None: self._supported_file_types = self._application.getInstance().getMeshFileHandler().getSupportedFileTypesRead() - # @pyqtSlot("QList") - # 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() def openSelectedFiles(self) -> None: """ Downloads, then opens all files selected in the Qt frontend open dialog. diff --git a/plugins/DigitalLibrary/src/DigitalFactoryFileProvider.py b/plugins/DigitalLibrary/src/DigitalFactoryFileProvider.py index c5dc164bda..7a544afaa1 100644 --- a/plugins/DigitalLibrary/src/DigitalFactoryFileProvider.py +++ b/plugins/DigitalLibrary/src/DigitalFactoryFileProvider.py @@ -31,7 +31,6 @@ class DigitalFactoryFileProvider(FileProvider): Function called every time the 'From Digital Factory' option of the 'Open File(s)' submenu is triggered """ self.loadWindow() - print("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa") if self._account.isLoggedIn and self._controller.userAccountHasLibraryAccess(): self._controller.initialize()