aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann1999-09-14 13:09:43 +0000
committerGerd Moellmann1999-09-14 13:09:43 +0000
commitb6d7acec859bc806a980ac7ed7e425cd7cf13623 (patch)
tree63ab1d76dd8a6da4021e30f802fd39d4a6f22f7b /src
parent539bf76f0130a9ea2e1c13e3e259d7efc67d9ec7 (diff)
downloademacs-b6d7acec859bc806a980ac7ed7e425cd7cf13623.tar.gz
emacs-b6d7acec859bc806a980ac7ed7e425cd7cf13623.zip
(x_set_background_color): Remove unused variable(s).
(x_set_border_pixel): Ditto. (x_set_menu_bar_lines): Put local variable used only for non-toolkit case in #ifdef/#endif. (x_figure_window_size): Remove unused variable(s). (x_figure_window_size, x_window, lookup_image, xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load, png_load, jpeg_load, gif_load, x_create_tip_frame, x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c28
1 files changed, 6 insertions, 22 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 293e3660fac..90df3eacb65 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1414,9 +1414,6 @@ x_set_background_color (f, arg, oldval)
1414 struct frame *f; 1414 struct frame *f;
1415 Lisp_Object arg, oldval; 1415 Lisp_Object arg, oldval;
1416{ 1416{
1417 Pixmap temp;
1418 int mask;
1419
1420 unsigned long pixel 1417 unsigned long pixel
1421 = x_decode_color (f, arg, WHITE_PIX_DEFAULT (f)); 1418 = x_decode_color (f, arg, WHITE_PIX_DEFAULT (f));
1422 1419
@@ -1673,9 +1670,6 @@ x_set_border_pixel (f, pix)
1673 1670
1674 if (FRAME_X_WINDOW (f) != 0 && f->output_data.x->border_width > 0) 1671 if (FRAME_X_WINDOW (f) != 0 && f->output_data.x->border_width > 0)
1675 { 1672 {
1676 Pixmap temp;
1677 int mask;
1678
1679 BLOCK_INPUT; 1673 BLOCK_INPUT;
1680 XSetWindowBorder (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 1674 XSetWindowBorder (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
1681 (unsigned long)pix); 1675 (unsigned long)pix);
@@ -1934,7 +1928,9 @@ x_set_menu_bar_lines (f, value, oldval)
1934 Lisp_Object value, oldval; 1928 Lisp_Object value, oldval;
1935{ 1929{
1936 int nlines; 1930 int nlines;
1931#ifndef USE_X_TOOLKIT
1937 int olines = FRAME_MENU_BAR_LINES (f); 1932 int olines = FRAME_MENU_BAR_LINES (f);
1933#endif
1938 1934
1939 /* Right now, menu bars don't work properly in minibuf-only frames; 1935 /* Right now, menu bars don't work properly in minibuf-only frames;
1940 most of the commands try to apply themselves to the minibuffer 1936 most of the commands try to apply themselves to the minibuffer
@@ -2865,8 +2861,6 @@ x_figure_window_size (f, parms)
2865 Lisp_Object parms; 2861 Lisp_Object parms;
2866{ 2862{
2867 register Lisp_Object tem0, tem1, tem2; 2863 register Lisp_Object tem0, tem1, tem2;
2868 int height, width, left, top;
2869 register int geometry;
2870 long window_prompting = 0; 2864 long window_prompting = 0;
2871 struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f); 2865 struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f);
2872 2866
@@ -3144,7 +3138,6 @@ x_window (f, window_prompting, minibuffer_only)
3144 ? (f->output_data.x->menubar_widget->core.height 3138 ? (f->output_data.x->menubar_widget->core.height
3145 + f->output_data.x->menubar_widget->core.border_width) 3139 + f->output_data.x->menubar_widget->core.border_width)
3146 : 0); 3140 : 0);
3147 extern char *lwlib_toolkit_type;
3148 3141
3149#if 0 /* Experimentally, we now get the right results 3142#if 0 /* Experimentally, we now get the right results
3150 for -geometry -0-0 without this. 24 Aug 96, rms. */ 3143 for -geometry -0-0 without this. 24 Aug 96, rms. */
@@ -6077,8 +6070,6 @@ lookup_image (f, spec)
6077 /* If not found, create a new image and cache it. */ 6070 /* If not found, create a new image and cache it. */
6078 if (img == NULL) 6071 if (img == NULL)
6079 { 6072 {
6080 extern Lisp_Object QCenable, QCselect;
6081 Lisp_Object tem;
6082 int loading_failed_p; 6073 int loading_failed_p;
6083 6074
6084 img = make_image (spec, hash); 6075 img = make_image (spec, hash);
@@ -6346,7 +6337,6 @@ static int xbm_load_image_from_file P_ ((struct frame *f, struct image *img,
6346static int xbm_image_p P_ ((Lisp_Object object)); 6337static int xbm_image_p P_ ((Lisp_Object object));
6347static int xbm_read_bitmap_file_data P_ ((char *, int *, int *, 6338static int xbm_read_bitmap_file_data P_ ((char *, int *, int *,
6348 unsigned char **)); 6339 unsigned char **));
6349static int xbm_read_hexint P_ ((FILE *));
6350 6340
6351 6341
6352/* Indices of image specification fields in xbm_format, below. */ 6342/* Indices of image specification fields in xbm_format, below. */
@@ -6645,8 +6635,6 @@ xbm_read_bitmap_file_data (file, width, height, data)
6645 /* Parse defines for width, height and hot-spots. */ 6635 /* Parse defines for width, height and hot-spots. */
6646 while (LA1 == '#') 6636 while (LA1 == '#')
6647 { 6637 {
6648 char *p;
6649
6650 match (); 6638 match ();
6651 expect_ident ("define"); 6639 expect_ident ("define");
6652 expect (XBM_TK_IDENT); 6640 expect (XBM_TK_IDENT);
@@ -7528,7 +7516,6 @@ x_build_heuristic_mask (f, file, img, how)
7528 Lisp_Object how; 7516 Lisp_Object how;
7529{ 7517{
7530 Display *dpy = FRAME_X_DISPLAY (f); 7518 Display *dpy = FRAME_X_DISPLAY (f);
7531 Window win = FRAME_X_WINDOW (f);
7532 XImage *ximg, *mask_img; 7519 XImage *ximg, *mask_img;
7533 int x, y, rc, look_at_corners_p; 7520 int x, y, rc, look_at_corners_p;
7534 unsigned long bg; 7521 unsigned long bg;
@@ -7741,7 +7728,7 @@ pbm_load (f, img)
7741 FILE *fp; 7728 FILE *fp;
7742 char magic[2]; 7729 char magic[2];
7743 int raw_p, x, y; 7730 int raw_p, x, y;
7744 int width, height, max_color_idx = 0, value; 7731 int width, height, max_color_idx = 0;
7745 XImage *ximg; 7732 XImage *ximg;
7746 Lisp_Object file, specified_file; 7733 Lisp_Object file, specified_file;
7747 enum {PBM_MONO, PBM_GRAY, PBM_COLOR} type; 7734 enum {PBM_MONO, PBM_GRAY, PBM_COLOR} type;
@@ -8041,7 +8028,7 @@ png_load (f, img)
8041 struct image *img; 8028 struct image *img;
8042{ 8029{
8043 Lisp_Object file, specified_file; 8030 Lisp_Object file, specified_file;
8044 int rc, x, y, i; 8031 int x, y, i;
8045 XImage *ximg, *mask_img = NULL; 8032 XImage *ximg, *mask_img = NULL;
8046 struct gcpro gcpro1; 8033 struct gcpro gcpro1;
8047 png_struct *png_ptr = NULL; 8034 png_struct *png_ptr = NULL;
@@ -8454,7 +8441,7 @@ jpeg_load (f, img)
8454 JSAMPARRAY buffer; 8441 JSAMPARRAY buffer;
8455 int row_stride, x, y; 8442 int row_stride, x, y;
8456 XImage *ximg = NULL; 8443 XImage *ximg = NULL;
8457 int rc, value; 8444 int rc;
8458 unsigned long *colors; 8445 unsigned long *colors;
8459 int width, height; 8446 int width, height;
8460 struct gcpro gcpro1; 8447 struct gcpro gcpro1;
@@ -8866,7 +8853,6 @@ gif_load (f, img)
8866 struct gcpro gcpro1; 8853 struct gcpro gcpro1;
8867 Lisp_Object image; 8854 Lisp_Object image;
8868 int ino, image_left, image_top, image_width, image_height; 8855 int ino, image_left, image_top, image_width, image_height;
8869 int bg;
8870 8856
8871 specified_file = image_spec_value (img->spec, QCfile, NULL); 8857 specified_file = image_spec_value (img->spec, QCfile, NULL);
8872 file = x_find_image_file (specified_file); 8858 file = x_find_image_file (specified_file);
@@ -9528,11 +9514,10 @@ x_create_tip_frame (dpyinfo, parms)
9528 struct frame *f; 9514 struct frame *f;
9529 Lisp_Object frame, tem; 9515 Lisp_Object frame, tem;
9530 Lisp_Object name; 9516 Lisp_Object name;
9531 int minibuffer_only = 0;
9532 long window_prompting = 0; 9517 long window_prompting = 0;
9533 int width, height; 9518 int width, height;
9534 int count = specpdl_ptr - specpdl; 9519 int count = specpdl_ptr - specpdl;
9535 struct gcpro gcpro1, gcpro2, gcpro3, gcpro4; 9520 struct gcpro gcpro1, gcpro2, gcpro3;
9536 struct kboard *kb; 9521 struct kboard *kb;
9537 9522
9538 check_x (); 9523 check_x ();
@@ -9770,7 +9755,6 @@ TIMEOUT nil means use the default timeout of 5 seconds.")
9770 struct frame *f; 9755 struct frame *f;
9771 struct window *w; 9756 struct window *w;
9772 Window root, child; 9757 Window root, child;
9773 struct it it;
9774 Lisp_Object buffer; 9758 Lisp_Object buffer;
9775 struct buffer *old_buffer; 9759 struct buffer *old_buffer;
9776 struct text_pos pos; 9760 struct text_pos pos;