]> git.eshelyaron.com Git - emacs.git/commitdiff
* marker.c (bytepos_to_charpos): Remove; unused.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Mar 2011 01:33:14 +0000 (18:33 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Mar 2011 01:33:14 +0000 (18:33 -0700)
src/ChangeLog
src/marker.c

index c438f1fb41a4c08907b15b2f98b1f3e741dc54b4..bcc1f156e6239a1dc561da5b961f245ee3f2fa90 100644 (file)
@@ -1,5 +1,7 @@
 2011-03-15  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * marker.c (bytepos_to_charpos): Remove; unused.
+
        * lisp.h (verify_bytepos, count_markers): New decls,
        so that gcc does not warn that these functions aren't declared.
 
index 72c564f420f8bfad78cfcc981071b47d8d5773af..7d46109914007acbe2e80b88851d499192a26d3f 100644 (file)
@@ -257,9 +257,10 @@ verify_bytepos (EMACS_INT charpos)
   return below_byte;
 }
 \f
-/* bytepos_to_charpos returns the char position corresponding to BYTEPOS.  */
+/* buf_bytepos_to_charpos returns the char position corresponding to
+   BYTEPOS.  */
 
-/* This macro is a subroutine of bytepos_to_charpos.
+/* This macro is a subroutine of buf_bytepos_to_charpos.
    It is used when BYTEPOS is actually the byte position.  */
 
 #define CONSIDER(BYTEPOS, CHARPOS)                                     \
@@ -302,12 +303,6 @@ verify_bytepos (EMACS_INT charpos)
     }                                                                  \
 }
 
-EMACS_INT
-bytepos_to_charpos (EMACS_INT bytepos)
-{
-  return buf_bytepos_to_charpos (current_buffer, bytepos);
-}
-
 EMACS_INT
 buf_bytepos_to_charpos (struct buffer *b, EMACS_INT bytepos)
 {
@@ -896,4 +891,3 @@ syms_of_marker (void)
               doc: /* Non-nil enables debugging checks in byte/char position conversions.  */);
   byte_debug_flag = 0;
 }
-