summaryrefslogtreecommitdiff
path: root/lwlib/lwlib-utils.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-04-15 18:41:12 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-04-15 18:41:12 -0700
commit4d511c40f437adec6b8a635fe717605c1354f49c (patch)
tree47825892a7538a9feb2ef78b40039efbd4171797 /lwlib/lwlib-utils.c
parent1fbb4609138cca32a9bac72561f63f22b0f26469 (diff)
downloademacs-4d511c40f437adec6b8a635fe717605c1354f49c.tar.gz
* lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused.
Diffstat (limited to 'lwlib/lwlib-utils.c')
-rw-r--r--lwlib/lwlib-utils.c26
1 files changed, 0 insertions, 26 deletions
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
-}