[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/noverlay 1c44f6c83d 1/5: ; * src/buffer.c (set_overlay_region):
From: |
Stefan Monnier |
Subject: |
feature/noverlay 1c44f6c83d 1/5: ; * src/buffer.c (set_overlay_region): remove unused function. |
Date: |
Wed, 19 Oct 2022 21:40:26 -0400 (EDT) |
branch: feature/noverlay
commit 1c44f6c83d88914cfee159ae021be33851e0112f
Author: Matt Armstrong <matt@rfc20.org>
Commit: Matt Armstrong <matt@rfc20.org>
; * src/buffer.c (set_overlay_region): remove unused function.
---
src/buffer.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/src/buffer.c b/src/buffer.c
index e1303f2a88..74c6705cbd 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -3535,15 +3535,6 @@ modify_overlay (struct buffer *buf, ptrdiff_t start,
ptrdiff_t end)
modiff_incr (&BUF_OVERLAY_MODIFF (buf), 1);
}
-INLINE void
-set_overlay_region (struct Lisp_Overlay *ov, ptrdiff_t begin, ptrdiff_t end)
-{
- eassert (ov->buffer);
- begin = clip_to_bounds (BEG, begin, ov->buffer->text->z);
- end = clip_to_bounds (begin, end, ov->buffer->text->z);
- interval_node_set_region (ov->buffer->overlays, ov->interval, begin, end);
-}
-
DEFUN ("move-overlay", Fmove_overlay, Smove_overlay, 3, 4, 0,
doc: /* Set the endpoints of OVERLAY to BEG and END in BUFFER.
If BUFFER is omitted, leave OVERLAY in the same buffer it inhabits now.