comparison src/intervals.c @ 40798:6cc722b4ebed

(graft_intervals_into_buffer): Remove #ifdef'd-out code. (graft_intervals_into_buffer): Remove unused variable `middle'.
author Pavel Janík <Pavel@Janik.cz>
date Wed, 07 Nov 2001 06:25:57 +0000
parents a1e434124570
children eb5f176de735
comparison
equal deleted inserted replaced
40797:58aaf62a42f0 40798:6cc722b4ebed
1678 struct buffer *buffer; 1678 struct buffer *buffer;
1679 int inherit; 1679 int inherit;
1680 { 1680 {
1681 register INTERVAL under, over, this, prev; 1681 register INTERVAL under, over, this, prev;
1682 register INTERVAL tree; 1682 register INTERVAL tree;
1683 int middle;
1684 1683
1685 tree = BUF_INTERVALS (buffer); 1684 tree = BUF_INTERVALS (buffer);
1686 1685
1687 /* If the new text has no properties, it becomes part of whatever 1686 /* If the new text has no properties, it becomes part of whatever
1688 interval it was inserted into. */ 1687 interval it was inserted into. */
1758 { 1757 {
1759 INTERVAL end_unchanged 1758 INTERVAL end_unchanged
1760 = split_interval_left (this, position - under->position); 1759 = split_interval_left (this, position - under->position);
1761 copy_properties (under, end_unchanged); 1760 copy_properties (under, end_unchanged);
1762 under->position = position; 1761 under->position = position;
1763 #if 0
1764 /* This code has no effect. */
1765 prev = 0;
1766 middle = 1;
1767 #endif /* 0 */
1768 } 1762 }
1769 else 1763 else
1770 { 1764 {
1771 /* This call may have some effect because previous_interval may 1765 /* This call may have some effect because previous_interval may
1772 update `position' fields of intervals. Thus, don't ignore it 1766 update `position' fields of intervals. Thus, don't ignore it