changeset 11166:0e9fad3ccf03

(x_delete_display): Extract kboard deletion, for modularity.
author Karl Heuer <kwzh@gnu.org>
date Fri, 31 Mar 1995 03:57:05 +0000
parents d5cd4e375335
children 5ba84aee3999
files src/xterm.c
diffstat 1 files changed, 1 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Fri Mar 31 03:56:30 1995 +0000
+++ b/src/xterm.c	Fri Mar 31 03:57:05 1995 +0000
@@ -5811,16 +5811,7 @@
 #endif
 #ifdef MULTI_KBOARD
   if (--dpyinfo->kboard->reference_count == 0)
-    {
-      KBOARD **kbp;
-      for (kbp = &all_kboards; *kbp != dpyinfo->kboard;
-	   kbp = &(*kbp)->next_kboard)
-	if (*kbp == NULL)
-	  abort ();
-      *kbp = dpyinfo->kboard->next_kboard;
-      wipe_kboard (dpyinfo->kboard);
-      xfree (dpyinfo->kboard);
-    }
+    delete_kboard (dpyinfo->kboard);
 #endif
   xfree (dpyinfo->font_table);
   xfree (dpyinfo->x_id_name);