diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-03-14 18:33:14 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-03-14 18:33:14 -0700 |
commit | b4c3046a733bd68d98a13b0de6bfd3423e4d09ea (patch) | |
tree | 0aa9527613515a2baa81a89f6c640bffd8196653 /src/marker.c | |
parent | b45db52287c1a23b2c639f4843395e4b5a4dbe92 (diff) | |
download | emacs-b4c3046a733bd68d98a13b0de6bfd3423e4d09ea.tar.gz |
* marker.c (bytepos_to_charpos): Remove; unused.
Diffstat (limited to 'src/marker.c')
-rw-r--r-- | src/marker.c | 12 |
1 files changed, 3 insertions, 9 deletions
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) \ @@ -303,12 +304,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) { struct Lisp_Marker *tail; @@ -896,4 +891,3 @@ syms_of_marker (void) doc: /* Non-nil enables debugging checks in byte/char position conversions. */); byte_debug_flag = 0; } - |