From: Paul Eggert Date: Tue, 15 Mar 2011 01:33:14 +0000 (-0700) Subject: * marker.c (bytepos_to_charpos): Remove; unused. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~554^2~88 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b4c3046a733bd68d98a13b0de6bfd3423e4d09ea;p=emacs.git * marker.c (bytepos_to_charpos): Remove; unused. --- diff --git a/src/ChangeLog b/src/ChangeLog index c438f1fb41a..bcc1f156e62 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-03-15 Paul Eggert + * 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. diff --git a/src/marker.c b/src/marker.c index 72c564f420f..7d461099140 100644 --- a/src/marker.c +++ b/src/marker.c @@ -257,9 +257,10 @@ verify_bytepos (EMACS_INT charpos) return below_byte; } -/* 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; } -