From b4c3046a733bd68d98a13b0de6bfd3423e4d09ea Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 14 Mar 2011 18:33:14 -0700 Subject: [PATCH] * marker.c (bytepos_to_charpos): Remove; unused. --- src/ChangeLog | 2 ++ src/marker.c | 12 +++--------- 2 files changed, 5 insertions(+), 9 deletions(-) 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; } - -- 2.39.5