Browse Source

Remove unused methods and unused arguments

Sebastian Lohff 1 year ago
parent
commit
c363c187bd
2 changed files with 1 additions and 10 deletions
  1. 1
    9
      clintermission/climenu.py
  2. 0
    1
      examples/multiselect.py

+ 1
- 9
clintermission/climenu.py View File

@@ -159,14 +159,6 @@ class CliMenu:
159 159
     def get_selection_item(self):
160 160
         return self.get_selection()[1]
161 161
 
162
-    def cursor(self):
163
-        return '{} '.format(self._cursor)
164
-
165
-    @property
166
-    def no_cursor(self):
167
-        # cursor with spaces minus dedent
168
-        return ' ' * (len(self._cursor) + 1 * self._dedent_selection)
169
-
170 162
     def _transform_prefix(self, item, lineno, prefix):
171 163
         return prefix
172 164
 
@@ -272,7 +264,7 @@ class CliMenu:
272 264
 
273 265
         @self._kb.add('N', filter=~is_searching)
274 266
         @self._kb.add('n', filter=~is_searching)
275
-        def search_inc(event, filter=is_searching):
267
+        def search_inc(event):
276 268
             if not self._bufctrl.search_state.text:
277 269
                 return
278 270
 

+ 0
- 1
examples/multiselect.py View File

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

Loading…
Cancel
Save