changeset 5992:c072fed85d62

(popup_selection_callback): Clean up code. Remove code in #if 0 directive. (popup_down_callback): Likewise.
author Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
date Fri, 18 Feb 1994 11:03:38 +0000
parents 6ad8db6dc039
children 5feb28cb62c8
files src/xmenu.c
diffstat 1 files changed, 0 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Fri Feb 18 06:28:50 1994 +0000
+++ b/src/xmenu.c	Fri Feb 18 11:03:38 1994 +0000
@@ -681,11 +681,6 @@
      LWLIB_ID id;
      XtPointer client_data;
 {
-#if 0
-  last_popup_selection_callback_id = id;
-  menubar_selection_callback (widget, id, client_data);
-  /* lw_destroy_all_widgets() will be called from popup_down_callback() */
-#endif
   VOID_TO_LISP (menu_item_selection, client_data);
 }
 
@@ -695,18 +690,9 @@
      LWLIB_ID id;
      XtPointer client_data;
 {
-#if 0
-  if (popup_menu_up_p == 0) abort ();
-  popup_menu_up_p--;
-  /* if this isn't called immediately after the selection callback, then
-     there wasn't a menu selection. */
-  if (id != last_popup_selection_callback_id)
-    menubar_selection_callback (widget, id, (XtPointer) -1);
-#endif
   BLOCK_INPUT;
   lw_destroy_all_widgets (id);
   UNBLOCK_INPUT;
-/*  ungcpro_popup_callbacks (make_number (id)); */
 }
 
 /* This recursively calls free_widget_value() on the tree of widgets.