diff options
| author | Paul Eggert | 2011-09-14 14:45:51 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-09-14 14:45:51 -0700 |
| commit | 1c14176cfd92376a14e4dbce27eb0c6457d12061 (patch) | |
| tree | 1a8d511c6ae27a0be4b7538838d52ae4a3015d71 /src | |
| parent | 3fe48822c39477d6e1b5fe566c00ccbb631cdb8e (diff) | |
| download | emacs-1c14176cfd92376a14e4dbce27eb0c6457d12061.tar.gz emacs-1c14176cfd92376a14e4dbce27eb0c6457d12061.zip | |
Remove unused external symbols.
* dispextern.h (calc_pixel_width_or_height): Remove decl.
* xdisp.c (calc_pixel_width_or_height): Now static.
* doprnt.c (exprintf) [! (HAVE_X_WINDOWS && USE_X_TOOLKIT)]: Remove.
* indent.c (check_display_width):
* w32term.c: Fix comment to match code.
* xterm.c, xterm.h (x_catching_errors): Remove.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/dispextern.h | 2 | ||||
| -rw-r--r-- | src/doprnt.c | 4 | ||||
| -rw-r--r-- | src/indent.c | 2 | ||||
| -rw-r--r-- | src/w32term.c | 1 | ||||
| -rw-r--r-- | src/xdisp.c | 2 | ||||
| -rw-r--r-- | src/xterm.c | 8 | ||||
| -rw-r--r-- | src/xterm.h | 1 |
8 files changed, 16 insertions, 14 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fd3de54c3e9..3dbddc9b215 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,15 @@ | |||
| 1 | 2011-09-14 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-09-14 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Remove unused external symbols. | ||
| 4 | * dispextern.h (calc_pixel_width_or_height): Remove decl. | ||
| 5 | * xdisp.c (calc_pixel_width_or_height): Now static. | ||
| 6 | * doprnt.c (exprintf) [! (HAVE_X_WINDOWS && USE_X_TOOLKIT)]: Remove. | ||
| 7 | * indent.c (check_display_width): | ||
| 8 | * w32term.c: Fix comment to match code. | ||
| 9 | * xterm.c, xterm.h (x_catching_errors): Remove. | ||
| 10 | |||
| 11 | 2011-09-14 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12 | |||
| 3 | * xselect.c: Use signed conversions more consistently (Bug#9498). | 13 | * xselect.c: Use signed conversions more consistently (Bug#9498). |
| 4 | (selection_data_to_lisp_data): Assume incoming selection data are | 14 | (selection_data_to_lisp_data): Assume incoming selection data are |
| 5 | signed integers, not unsigned. This is to be consistent with | 15 | signed integers, not unsigned. This is to be consistent with |
diff --git a/src/dispextern.h b/src/dispextern.h index f6c3fe1e3ca..65284121588 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -3036,8 +3036,6 @@ extern struct frame *last_mouse_frame; | |||
| 3036 | extern int last_tool_bar_item; | 3036 | extern int last_tool_bar_item; |
| 3037 | extern void reseat_at_previous_visible_line_start (struct it *); | 3037 | extern void reseat_at_previous_visible_line_start (struct it *); |
| 3038 | extern Lisp_Object lookup_glyphless_char_display (int, struct it *); | 3038 | extern Lisp_Object lookup_glyphless_char_display (int, struct it *); |
| 3039 | extern int calc_pixel_width_or_height (double *, struct it *, Lisp_Object, | ||
| 3040 | struct font *, int, int *); | ||
| 3041 | extern EMACS_INT compute_display_string_pos (struct text_pos *, | 3039 | extern EMACS_INT compute_display_string_pos (struct text_pos *, |
| 3042 | struct bidi_string_data *, | 3040 | struct bidi_string_data *, |
| 3043 | int, int *); | 3041 | int, int *); |
diff --git a/src/doprnt.c b/src/doprnt.c index 8db7c0f2ada..b4d13c59137 100644 --- a/src/doprnt.c +++ b/src/doprnt.c | |||
| @@ -486,6 +486,8 @@ esprintf (char *buf, char const *format, ...) | |||
| 486 | return nbytes; | 486 | return nbytes; |
| 487 | } | 487 | } |
| 488 | 488 | ||
| 489 | #if defined HAVE_X_WINDOWS && defined USE_X_TOOLKIT | ||
| 490 | |||
| 489 | /* Format to buffer *BUF of positive size *BUFSIZE, reallocating *BUF | 491 | /* Format to buffer *BUF of positive size *BUFSIZE, reallocating *BUF |
| 490 | and updating *BUFSIZE if the buffer is too small, and otherwise | 492 | and updating *BUFSIZE if the buffer is too small, and otherwise |
| 491 | behaving line esprintf. When reallocating, free *BUF unless it is | 493 | behaving line esprintf. When reallocating, free *BUF unless it is |
| @@ -505,6 +507,8 @@ exprintf (char **buf, ptrdiff_t *bufsize, | |||
| 505 | return nbytes; | 507 | return nbytes; |
| 506 | } | 508 | } |
| 507 | 509 | ||
| 510 | #endif | ||
| 511 | |||
| 508 | /* Act like exprintf, except take a va_list. */ | 512 | /* Act like exprintf, except take a va_list. */ |
| 509 | ptrdiff_t | 513 | ptrdiff_t |
| 510 | evxprintf (char **buf, ptrdiff_t *bufsize, | 514 | evxprintf (char **buf, ptrdiff_t *bufsize, |
diff --git a/src/indent.c b/src/indent.c index bae9ab1b46d..e00d2152577 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -471,7 +471,7 @@ check_display_width (EMACS_INT pos, EMACS_INT col, EMACS_INT *endpos) | |||
| 471 | if (CONSP (val = get_char_property_and_overlay | 471 | if (CONSP (val = get_char_property_and_overlay |
| 472 | (make_number (pos), Qdisplay, Qnil, &overlay)) | 472 | (make_number (pos), Qdisplay, Qnil, &overlay)) |
| 473 | && EQ (Qspace, XCAR (val))) | 473 | && EQ (Qspace, XCAR (val))) |
| 474 | { /* FIXME: Use calc_pixel_width_or_height, as in term.c. */ | 474 | { /* FIXME: Use calc_pixel_width_or_height. */ |
| 475 | Lisp_Object plist = XCDR (val), prop; | 475 | Lisp_Object plist = XCDR (val), prop; |
| 476 | int width = -1; | 476 | int width = -1; |
| 477 | 477 | ||
diff --git a/src/w32term.c b/src/w32term.c index 98c4a391953..8d9d8f72029 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -5197,7 +5197,6 @@ x_catch_errors (dpy) | |||
| 5197 | x_catch_errors_unwind (old_val) | 5197 | x_catch_errors_unwind (old_val) |
| 5198 | x_check_errors (dpy, format) | 5198 | x_check_errors (dpy, format) |
| 5199 | x_fully_uncatch_errors () | 5199 | x_fully_uncatch_errors () |
| 5200 | x_catching_errors () | ||
| 5201 | x_had_errors_p (dpy) | 5200 | x_had_errors_p (dpy) |
| 5202 | x_clear_errors (dpy) | 5201 | x_clear_errors (dpy) |
| 5203 | x_uncatch_errors (dpy, count) | 5202 | x_uncatch_errors (dpy, count) |
diff --git a/src/xdisp.c b/src/xdisp.c index 3ebf7d19b1f..8adc83b5068 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -21293,7 +21293,7 @@ else if the text is replaced by an ellipsis. */) | |||
| 21293 | ? XFLOATINT (X) \ | 21293 | ? XFLOATINT (X) \ |
| 21294 | : - 1) | 21294 | : - 1) |
| 21295 | 21295 | ||
| 21296 | int | 21296 | static int |
| 21297 | calc_pixel_width_or_height (double *res, struct it *it, Lisp_Object prop, | 21297 | calc_pixel_width_or_height (double *res, struct it *it, Lisp_Object prop, |
| 21298 | struct font *font, int width_p, int *align_to) | 21298 | struct font *font, int width_p, int *align_to) |
| 21299 | { | 21299 | { |
diff --git a/src/xterm.c b/src/xterm.c index 34576da986d..7c4ee96deab 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7686,14 +7686,6 @@ x_fully_uncatch_errors (void) | |||
| 7686 | } | 7686 | } |
| 7687 | #endif | 7687 | #endif |
| 7688 | 7688 | ||
| 7689 | /* Nonzero if x_catch_errors has been done and not yet canceled. */ | ||
| 7690 | |||
| 7691 | int | ||
| 7692 | x_catching_errors (void) | ||
| 7693 | { | ||
| 7694 | return x_error_message != 0; | ||
| 7695 | } | ||
| 7696 | |||
| 7697 | #if 0 | 7689 | #if 0 |
| 7698 | static unsigned int x_wire_count; | 7690 | static unsigned int x_wire_count; |
| 7699 | x_trace_wire (void) | 7691 | x_trace_wire (void) |
diff --git a/src/xterm.h b/src/xterm.h index 5c9365c1269..11d5d50d952 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -958,7 +958,6 @@ extern void x_catch_errors (Display *); | |||
| 958 | extern void x_check_errors (Display *, const char *) | 958 | extern void x_check_errors (Display *, const char *) |
| 959 | ATTRIBUTE_FORMAT_PRINTF (2, 0); | 959 | ATTRIBUTE_FORMAT_PRINTF (2, 0); |
| 960 | extern int x_had_errors_p (Display *); | 960 | extern int x_had_errors_p (Display *); |
| 961 | extern int x_catching_errors (void); | ||
| 962 | extern void x_uncatch_errors (void); | 961 | extern void x_uncatch_errors (void); |
| 963 | extern void x_clear_errors (Display *); | 962 | extern void x_clear_errors (Display *); |
| 964 | extern void x_set_window_size (struct frame *, int, int, int); | 963 | extern void x_set_window_size (struct frame *, int, int, int); |