From 0aecae288f3babe1ced4801fb018255cb53b665d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 9 Sep 2017 14:02:08 +0530 Subject: [PATCH] Avoid extra function call when waking up for cursor blink rendering --- kitty/boss.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kitty/boss.py b/kitty/boss.py index 9f069dece..b78c465ae 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -60,10 +60,6 @@ class Timers(_Timers): return _Timers.remove_event(self, timer) -def wakeup_for_cursor_blink_render(): - pass - - class DumpCommands: # {{{ def __init__(self, args): @@ -408,7 +404,7 @@ class Boss: n = t // d draw_cursor = n % 2 == 0 self.ui_timers.add_if_before( - ((n + 1) * d / 1000) - now, wakeup_for_cursor_blink_render) + ((n + 1) * d / 1000) - now, None) if draw_cursor: with self.cursor_program: active.char_grid.render_cursor(