--- a/eric6/MicroPython/MicroPythonFileManager.py Tue Jul 30 19:44:27 2019 +0200 +++ b/eric6/MicroPython/MicroPythonFileManager.py Wed Jul 31 20:41:39 2019 +0200 @@ -45,15 +45,6 @@ @signal fsinfoDone(fsinfo) emitted after the file system information was obtained - @signal synchTimeDone() emitted after the time was synchronizde to the - device - @signal showTimeDone(dateTime) emitted after the date and time was fetched - from the connected device - @signal showVersionDone(versionInfo) emitted after the version information - was fetched from the connected device - @signal showImplementationDone(name,version) emitted after the - implementation information has been obtained - @signal error(exc) emitted with a failure message to indicate a failure during the most recent operation """ @@ -69,11 +60,6 @@ createDirectoryDone = pyqtSignal() fsinfoDone = pyqtSignal(tuple) - synchTimeDone = pyqtSignal() - showTimeDone = pyqtSignal(str) - showVersionDone = pyqtSignal(dict) - showImplementationDone = pyqtSignal(str, str) - error = pyqtSignal(str, str) def __init__(self, commandsInterface, parent=None): @@ -381,65 +367,3 @@ self.fsinfoDone.emit(fsinfo) except Exception as exc: self.error.emit("fileSystemInfo", str(exc)) - - ################################################################## - ## some non-filesystem related methods below - ################################################################## - - @pyqtSlot() - def synchronizeTime(self): - """ - Public slot to set the time of the connected device to the local - computer's time. - """ - try: - self.__commandsInterface.syncTime() - self.synchTimeDone.emit() - except Exception as exc: - self.error.emit("rmdir", str(exc)) - - @pyqtSlot() - def showTime(self): - """ - Public slot to get the current date and time of the device. - """ - try: - dt = self.__commandsInterface.showTime() - self.showTimeDone.emit(dt) - except Exception as exc: - self.error.emit("showTime", str(exc)) - - @pyqtSlot() - def showVersion(self): - """ - Public slot to get the version info for the MicroPython run by the - connected device. - """ - try: - versionInfo = self.__commandsInterface.version() - self.showVersionDone.emit(versionInfo) - except Exception as exc: - self.error.emit("showVersion", str(exc)) - - @pyqtSlot() - def showImplementation(self): - """ - Public slot to obtain some implementation related information. - """ - try: - impInfo = self.__commandsInterface.getImplementation() - if impInfo["name"] == "micropython": - name = "MicroPython" - elif impInfo["name"] == "circuitpython": - name = "CircuitPython" - elif impInfo["name"] == "unknown": - name = self.tr("unknown") - else: - name = impInfo["name"] - if impInfo["version"] == "unknown": - version = self.tr("unknown") - else: - version = impInfo["version"] - self.showImplementationDone.emit(name, version) - except Exception as exc: - self.error.emit("showVersion", str(exc))