Remove unused code

This commit is contained in:
Kovid Goyal
2017-12-03 17:53:43 +05:30
parent b191727567
commit c95418a947
2 changed files with 1 additions and 5 deletions

View File

@@ -105,10 +105,6 @@ rmkx_key_map.update({
cursor_key_mode_map = {True: smkx_key_map, False: rmkx_key_map}
def get_key_map(screen):
return cursor_key_mode_map[screen.cursor_key_mode]
def keyboard_mode_name(screen):
if screen.extended_keyboard:
return 'kitty'

View File

@@ -221,7 +221,7 @@ class TestParser(BaseTest):
pb('\033 G', ('screen_set_8bit_controls', 1))
c = s.callbacks
pb('\033P$qm\033\\', ('screen_request_capabilities', ord('$'), 'm'))
self.ae(c.wtcbuf, b'\x901$r0m\x9c')
self.ae(c.wtcbuf, b'\x901$rm\x9c')
c.clear()
pb('\033[0c', ('report_device_attributes', 0, 0))
self.ae(c.wtcbuf, b'\x9b?62;c')