From 1af8f7ab2a37e1821574e1503a2a7bb491f4ffad Mon Sep 17 00:00:00 2001 From: Daniel Edgecumbe Date: Thu, 28 Sep 2017 03:06:57 +0100 Subject: [PATCH] Remove some commented unneeded code --- main.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.py b/main.py index b3ac532..1dc239e 100644 --- a/main.py +++ b/main.py @@ -35,18 +35,12 @@ async def keypress_loop(window, callback, resize_callback): # Unhandled key. Don't care. pass - # first = True while True: # This is basically spinning which is really annoying. # TODO: find a way of having async blocking getch/getkey. try: key = window.getkey() except Exception: - # This is bonkers and I don't understand it. - # if first: - # await callback(DEFAULT_MODE[0]) # hackery! - # first = False - await asyncio.sleep(0.05) continue