aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-04-15 18:41:12 -0700
committerPaul Eggert2011-04-15 18:41:12 -0700
commit4d511c40f437adec6b8a635fe717605c1354f49c (patch)
tree47825892a7538a9feb2ef78b40039efbd4171797
parent1fbb4609138cca32a9bac72561f63f22b0f26469 (diff)
downloademacs-4d511c40f437adec6b8a635fe717605c1354f49c.tar.gz
emacs-4d511c40f437adec6b8a635fe717605c1354f49c.zip
* lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused.
-rw-r--r--lwlib/ChangeLog2
-rw-r--r--lwlib/lwlib-utils.c26
-rw-r--r--lwlib/lwlib-utils.h3
3 files changed, 2 insertions, 29 deletions
diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog
index f098b6d0ad6..d6a76a96471 100644
--- a/lwlib/ChangeLog
+++ b/lwlib/ChangeLog
@@ -1,5 +1,7 @@
12011-04-16 Paul Eggert <eggert@cs.ucla.edu> 12011-04-16 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * lwlib-utils.h, lwlib-utils.c (XtSafelyDestroyWidget): Remove; unused.
4
3 * xlwmenu.c (XlwMenuSetValues): Rename/ move locals to avoid shadowing. 5 * xlwmenu.c (XlwMenuSetValues): Rename/ move locals to avoid shadowing.
4 (MINL): Define only if not emacs. 6 (MINL): Define only if not emacs.
5 7
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)
141{ 141{
142 return widget->core.being_destroyed; 142 return widget->core.being_destroyed;
143} 143}
144
145void
146XtSafelyDestroyWidget (Widget widget)
147{
148#if 0
149
150 /* this requires IntrinsicI.h (actually, InitialI.h) */
151
152 XtAppContext app = XtWidgetToApplicationContext(widget);
153
154 if (app->dispatch_level == 0)
155 {
156 app->dispatch_level = 1;
157 XtDestroyWidget (widget);
158 /* generates an event so that the event loop will be called */
159 XChangeProperty (XtDisplay (widget), XtWindow (widget),
160 XA_STRING, XA_STRING, 32, PropModeAppend, NULL, 0);
161 app->dispatch_level = 0;
162 }
163 else
164 XtDestroyWidget (widget);
165
166#else
167 abort ();
168#endif
169}
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 *);
15Boolean 15Boolean
16XtWidgetBeingDestroyedP (Widget widget); 16XtWidgetBeingDestroyedP (Widget widget);
17 17
18void XtSafelyDestroyWidget (Widget);
19
20#endif /* _LWLIB_UTILS_H_ */ 18#endif /* _LWLIB_UTILS_H_ */
21