From: Paul Eggert Date: Sat, 16 Apr 2011 01:41:12 +0000 (-0700) Subject: * lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~268^2~55 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4d511c40f437adec6b8a635fe717605c1354f49c;p=emacs.git * lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused. --- diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog index f098b6d0ad6..d6a76a96471 100644 --- a/lwlib/ChangeLog +++ b/lwlib/ChangeLog @@ -1,5 +1,7 @@ 2011-04-16 Paul Eggert + * lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused. + * xlwmenu.c (XlwMenuSetValues): Rename/ move locals to avoid shadowing. (MINL): Define only if not emacs. diff --git a/lwlib/lwlib-utils.c b/lwlib/lwlib-utils.c index a3e1cb3b432..c590270a2af 100644 --- a/lwlib/lwlib-utils.c +++ b/lwlib/lwlib-utils.c @@ -141,29 +141,3 @@ XtWidgetBeingDestroyedP (Widget widget) { return widget->core.being_destroyed; } - -void -XtSafelyDestroyWidget (Widget widget) -{ -#if 0 - - /* this requires IntrinsicI.h (actually, InitialI.h) */ - - XtAppContext app = XtWidgetToApplicationContext(widget); - - if (app->dispatch_level == 0) - { - app->dispatch_level = 1; - XtDestroyWidget (widget); - /* generates an event so that the event loop will be called */ - XChangeProperty (XtDisplay (widget), XtWindow (widget), - XA_STRING, XA_STRING, 32, PropModeAppend, NULL, 0); - app->dispatch_level = 0; - } - else - XtDestroyWidget (widget); - -#else - abort (); -#endif -} diff --git a/lwlib/lwlib-utils.h b/lwlib/lwlib-utils.h index b988374288a..ec3daab94ef 100644 --- a/lwlib/lwlib-utils.h +++ b/lwlib/lwlib-utils.h @@ -15,7 +15,4 @@ Widget *XtCompositeChildren (Widget, unsigned int *); Boolean XtWidgetBeingDestroyedP (Widget widget); -void XtSafelyDestroyWidget (Widget); - #endif /* _LWLIB_UTILS_H_ */ -