From b4e953ba0442e351ef06b93e85fbe67bbf163771 Mon Sep 17 00:00:00 2001 From: Daniel Colascione Date: Sat, 9 Jun 2018 18:30:28 -0700 Subject: [PATCH] Remove obsolete keyboard.c code * src/keyboard.c (any_kboard_state, single_kboard_state): Remove #if-0-ed functions. --- src/keyboard.c | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/src/keyboard.c b/src/keyboard.c index c90fbd302fa..c9e069c8653 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -788,35 +788,6 @@ recursive_edit_unwind (Lisp_Object buffer) } -#if 0 /* These two functions are now replaced with - temporarily_switch_to_single_kboard. */ -static void -any_kboard_state () -{ -#if 0 /* Theory: if there's anything in Vunread_command_events, - it will right away be read by read_key_sequence, - and then if we do switch KBOARDS, it will go into the side - queue then. So we don't need to do anything special here -- rms. */ - if (CONSP (Vunread_command_events)) - { - current_kboard->kbd_queue - = nconc2 (Vunread_command_events, current_kboard->kbd_queue); - current_kboard->kbd_queue_has_data = true; - } - Vunread_command_events = Qnil; -#endif - single_kboard = false; -} - -/* Switch to the single-kboard state, making current_kboard - the only KBOARD from which further input is accepted. */ - -void -single_kboard_state () -{ - single_kboard = true; -} -#endif /* If we're in single_kboard state for kboard KBOARD, get out of it. */ @@ -915,16 +886,6 @@ temporarily_switch_to_single_kboard (struct frame *f) record_unwind_protect_int (restore_kboard_configuration, was_locked); } -#if 0 /* This function is not needed anymore. */ -void -record_single_kboard_state () -{ - if (single_kboard) - push_kboard (current_kboard); - record_unwind_protect_int (restore_kboard_configuration, single_kboard); -} -#endif - static void restore_kboard_configuration (int was_locked) { -- 2.39.2