aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Colascione2018-06-09 18:30:28 -0700
committerDaniel Colascione2018-06-11 16:08:42 -0700
commitb4e953ba0442e351ef06b93e85fbe67bbf163771 (patch)
treead8b9b31636c647ff06308ed30f09b62b4571988 /src
parent94d60f59fc654706c3a52ed2c90c355b36be7898 (diff)
downloademacs-b4e953ba0442e351ef06b93e85fbe67bbf163771.tar.gz
emacs-b4e953ba0442e351ef06b93e85fbe67bbf163771.zip
Remove obsolete keyboard.c code
* src/keyboard.c (any_kboard_state, single_kboard_state): Remove #if-0-ed functions.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c39
1 files changed, 0 insertions, 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)
788} 788}
789 789
790 790
791#if 0 /* These two functions are now replaced with
792 temporarily_switch_to_single_kboard. */
793static void
794any_kboard_state ()
795{
796#if 0 /* Theory: if there's anything in Vunread_command_events,
797 it will right away be read by read_key_sequence,
798 and then if we do switch KBOARDS, it will go into the side
799 queue then. So we don't need to do anything special here -- rms. */
800 if (CONSP (Vunread_command_events))
801 {
802 current_kboard->kbd_queue
803 = nconc2 (Vunread_command_events, current_kboard->kbd_queue);
804 current_kboard->kbd_queue_has_data = true;
805 }
806 Vunread_command_events = Qnil;
807#endif
808 single_kboard = false;
809}
810
811/* Switch to the single-kboard state, making current_kboard
812 the only KBOARD from which further input is accepted. */
813
814void
815single_kboard_state ()
816{
817 single_kboard = true;
818}
819#endif
820 791
821/* If we're in single_kboard state for kboard KBOARD, 792/* If we're in single_kboard state for kboard KBOARD,
822 get out of it. */ 793 get out of it. */
@@ -915,16 +886,6 @@ temporarily_switch_to_single_kboard (struct frame *f)
915 record_unwind_protect_int (restore_kboard_configuration, was_locked); 886 record_unwind_protect_int (restore_kboard_configuration, was_locked);
916} 887}
917 888
918#if 0 /* This function is not needed anymore. */
919void
920record_single_kboard_state ()
921{
922 if (single_kboard)
923 push_kboard (current_kboard);
924 record_unwind_protect_int (restore_kboard_configuration, single_kboard);
925}
926#endif
927
928static void 889static void
929restore_kboard_configuration (int was_locked) 890restore_kboard_configuration (int was_locked)
930{ 891{