changeset 7988:26c3ce816369

(x_window): Delete duplicate computation. Change type of reference argument from int to short.
author Karl Heuer <kwzh@gnu.org>
date Tue, 21 Jun 1994 00:42:12 +0000
parents 5d29639db749
children 616f4e2e2120
files src/xfns.c
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Mon Jun 20 23:24:13 1994 +0000
+++ b/src/xfns.c	Tue Jun 21 00:42:12 1994 +0000
@@ -1927,21 +1927,15 @@
     char *tem, shell_position[32];
     Arg al[2];
     int ac = 0;
-    int ibw;
     int menubar_size 
       = (f->display.x->menubar_widget
 	 ? (f->display.x->menubar_widget->core.height
 	    + f->display.x->menubar_widget->core.border_width)
 	 : 0);
 
-    XtVaGetValues (pane_widget,
-                   XtNinternalBorderWidth, &ibw,
-                   NULL);
-    menubar_size += ibw;
-
     if (FRAME_EXTERNAL_MENU_BAR (f))
       {
-        int ibw;
+        short ibw;
         XtVaGetValues (pane_widget, XtNinternalBorderWidth, &ibw, NULL);
         menubar_size += ibw;
       }