Skip to content

Commit a9ed5d3

Browse files
committed
Remove TextRange::offset (for now?)
1 parent 9d2b3c9 commit a9ed5d3

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/range.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,6 @@ impl TextRange {
6464
end,
6565
}
6666
}
67-
68-
/// Offset this range by some amount.
69-
///
70-
/// This is typically used to convert a range from one coordinate space to
71-
/// another, such as from within a substring to within an entire document.
72-
#[inline]
73-
pub fn offset(self, offset: TextSize) -> TextRange {
74-
TextRange(
75-
self.start().checked_add(offset).unwrap(),
76-
self.end().checked_add(offset).unwrap(),
77-
)
78-
}
7967
}
8068

8169
/// Identity methods.

0 commit comments

Comments
 (0)