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:
brian m. carlson 2014-07-30 22:33:29 +00:00
parent b46144f50c
commit 8563e90739
No known key found for this signature in database
GPG key ID: BF535D811F52F68B

View file

@ -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":