Remove unused methods and unused arguments

This commit is contained in:
Sebastian Lohff 2020-08-20 00:15:41 +02:00
parent 94bb03dc07
commit c363c187bd
2 changed files with 1 additions and 10 deletions

View File

@ -159,14 +159,6 @@ class CliMenu:
def get_selection_item(self): def get_selection_item(self):
return self.get_selection()[1] return self.get_selection()[1]
def cursor(self):
return '{} '.format(self._cursor)
@property
def no_cursor(self):
# cursor with spaces minus dedent
return ' ' * (len(self._cursor) + 1 * self._dedent_selection)
def _transform_prefix(self, item, lineno, prefix): def _transform_prefix(self, item, lineno, prefix):
return prefix return prefix
@ -272,7 +264,7 @@ class CliMenu:
@self._kb.add('N', filter=~is_searching) @self._kb.add('N', filter=~is_searching)
@self._kb.add('n', filter=~is_searching) @self._kb.add('n', filter=~is_searching)
def search_inc(event, filter=is_searching): def search_inc(event):
if not self._bufctrl.search_state.text: if not self._bufctrl.search_state.text:
return return

View File

@ -12,7 +12,6 @@ q = [
m = CliMultiMenu(q, "Make your choice (<space> selects, <return> accepts):\n", cursor=CliMenuCursor.ASCII_ARROW, m = CliMultiMenu(q, "Make your choice (<space> selects, <return> accepts):\n", cursor=CliMenuCursor.ASCII_ARROW,
unselected_icon="", selected_icon="") unselected_icon="", selected_icon="")
m.get_selection()
print("You selected", m.get_selection()) print("You selected", m.get_selection())
print("You selected num:", m.get_selection_num()) print("You selected num:", m.get_selection_num())
print("You selected item:", m.get_selection_item()) print("You selected item:", m.get_selection_item())