mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 07:51:27 +00:00
Remove unused methods from Console
set_history(), get_history() and register_command() were never used.
This commit is contained in:
parent
9b416b577e
commit
4b76541d4c
1 changed files with 0 additions and 11 deletions
|
@ -175,12 +175,6 @@ class Console(QtWidgets.QPlainTextEdit):
|
||||||
else:
|
else:
|
||||||
return command
|
return command
|
||||||
|
|
||||||
def getHistory(self):
|
|
||||||
return self.history
|
|
||||||
|
|
||||||
def setHistory(self, history):
|
|
||||||
self.history = history
|
|
||||||
|
|
||||||
def addToHistory(self, command):
|
def addToHistory(self, command):
|
||||||
if command[0:1] == ' ':
|
if command[0:1] == ' ':
|
||||||
return
|
return
|
||||||
|
@ -212,11 +206,6 @@ class Console(QtWidgets.QPlainTextEdit):
|
||||||
for i in range(len(self.prompt) + position):
|
for i in range(len(self.prompt) + position):
|
||||||
self.moveCursor(QtGui.QTextCursor.Right)
|
self.moveCursor(QtGui.QTextCursor.Right)
|
||||||
|
|
||||||
def register_command(self, c, func):
|
|
||||||
methods = { c: func}
|
|
||||||
self.updateNamespace(methods)
|
|
||||||
|
|
||||||
|
|
||||||
def runCommand(self):
|
def runCommand(self):
|
||||||
command = self.getCommand()
|
command = self.getCommand()
|
||||||
self.addToHistory(command)
|
self.addToHistory(command)
|
||||||
|
|
Loading…
Add table
Reference in a new issue