electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit fdaf6e775cdbe461a8466d1d7e46360c8a90e4d7
parent 531343814011fa6c67b4442267ceea7cf25f67db
Author: ThomasV <thomasv@electrum.org>
Date:   Thu, 27 Aug 2020 10:00:35 +0200

Merge pull request #6489 from verretor/console-remove-methods

Remove unused methods from Console
Diffstat:
Melectrum/gui/qt/console.py | 11-----------
1 file changed, 0 insertions(+), 11 deletions(-)

diff --git 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)