From 4b76541d4c9a24903a23e7067a3ce59a0bdb970d Mon Sep 17 00:00:00 2001 From: Benoit Verret Date: Fri, 7 Aug 2020 07:23:10 -0400 Subject: [PATCH] Remove unused methods from Console set_history(), get_history() and register_command() were never used. --- electrum/gui/qt/console.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/electrum/gui/qt/console.py b/electrum/gui/qt/console.py index c7a02d8c5..ee627cf28 100644 --- a/electrum/gui/qt/console.py +++ b/electrum/gui/qt/console.py @@ -175,12 +175,6 @@ class Console(QtWidgets.QPlainTextEdit): else: return command - def getHistory(self): - return self.history - - def setHistory(self, history): - self.history = history - def addToHistory(self, command): if command[0:1] == ' ': return @@ -212,11 +206,6 @@ class Console(QtWidgets.QPlainTextEdit): for i in range(len(self.prompt) + position): self.moveCursor(QtGui.QTextCursor.Right) - def register_command(self, c, func): - methods = { c: func} - self.updateNamespace(methods) - - def runCommand(self): command = self.getCommand() self.addToHistory(command)