]> git.eshelyaron.com Git - emacs.git/commitdiff
* buffer.c (Fprevious_overlay_change): Remove var that is set
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Apr 2011 07:36:27 +0000 (00:36 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Apr 2011 07:36:27 +0000 (00:36 -0700)
but not used.

src/ChangeLog
src/buffer.c

index 15ad975eff5161d941d5a4dfb715b68d8ecd8e89..a470962d74d8054d1cb87e4fba7fb020db33d86f 100644 (file)
@@ -1,5 +1,8 @@
 2011-04-02  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * buffer.c (Fprevious_overlay_change): Remove var that is set
+       but not used.
+
        * keyboard.c (menu_bar_items, read_char_minibuf_menu_prompt):
        Remove vars that are set but not used.
        (timer_check_2): Don't assume timer-list and idle-timer-list are lists.
index cdcd2ccecff84112a7f1a1e89a46903b1b8db961..a0054e32d0ac59a71fc736234599015c0b61fcfc 100644 (file)
@@ -4047,7 +4047,6 @@ If there are no overlay boundaries from (point-min) to POS,
 the value is (point-min).  */)
   (Lisp_Object pos)
 {
-  int noverlays;
   EMACS_INT prevpos;
   Lisp_Object *overlay_vec;
   int len;
@@ -4065,8 +4064,8 @@ the value is (point-min).  */)
   /* Put all the overlays we want in a vector in overlay_vec.
      Store the length in len.
      prevpos gets the position of the previous change.  */
-  noverlays = overlays_at (XINT (pos), 1, &overlay_vec, &len,
-                          (EMACS_INT *) 0, &prevpos, 1);
+  overlays_at (XINT (pos), 1, &overlay_vec, &len,
+              (EMACS_INT *) 0, &prevpos, 1);
 
   xfree (overlay_vec);
   return make_number (prevpos);