Remove unused code.
The only case in which we can call toggle_state from outside of the class it's declared in is in DisplayTemplateRecordView. However, we no longer try to toggle the first cell, which is the only one that can contain a non-checkbox. Remove this code since it is never used. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
This commit is contained in:
parent
b46144f50c
commit
8563e90739
1 changed files with 0 additions and 6 deletions
|
|
@ -177,12 +177,6 @@ class RecordEditBox(urwid.Edit, Tabbable):
|
|||
def get_state(self):
|
||||
return bool(self.get_edit_text())
|
||||
|
||||
def toggle_state(self):
|
||||
if self.get_state():
|
||||
self.set_edit_text("")
|
||||
else:
|
||||
self.set_edit_text("choisi")
|
||||
|
||||
def keypress(self, size, key):
|
||||
try:
|
||||
if len(key) > 1 and key != "enter":
|
||||
|
|
|
|||
Loading…
Reference in a new issue