* xfaces.c (face_for_overlay_string): Remove unused local.

This commit is contained in:
Paul Eggert 2012-08-02 02:33:13 -07:00
parent 56adbe62a5
commit c0ce93fddb
2 changed files with 2 additions and 5 deletions

View file

@ -1,8 +1,7 @@
2012-08-02 Paul Eggert <eggert@cs.ucla.edu>
* xfaces.c (face_at_buffer_position): Remove unused local.
(face_at_buffer_position, face_for_overlay_string):
Don't assume buffer size fits in 'int'.
* xfaces.c (face_at_buffer_position, face_for_overlay_string):
Don't assume buffer size fits in 'int'. Remove unused local.
Use C99-style 'extern inline' if available.
* buffer.h (BUFFER_INLINE):

View file

@ -6144,7 +6144,6 @@ face_for_overlay_string (struct window *w, ptrdiff_t pos,
struct frame *f = XFRAME (WVAR (w, frame));
Lisp_Object attrs[LFACE_VECTOR_SIZE];
Lisp_Object prop, position;
Lisp_Object frame;
ptrdiff_t endpos;
Lisp_Object propname = mouse ? Qmouse_face : Qface;
Lisp_Object limit1, end;
@ -6154,7 +6153,6 @@ face_for_overlay_string (struct window *w, ptrdiff_t pos,
to use the frame and buffer of W, but right now it doesn't. */
/* eassert (XBUFFER (w->buffer) == current_buffer); */
XSETFRAME (frame, f);
XSETFASTINT (position, pos);
endpos = ZV;