Unnamed repository; edit this file 'description' to name the repository.
Remove TextRange::offset (for now?)
| -rw-r--r-- | lib/text-size/src/range.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/text-size/src/range.rs b/lib/text-size/src/range.rs index 08d8d3e2cc..339acf8599 100644 --- a/lib/text-size/src/range.rs +++ b/lib/text-size/src/range.rs @@ -64,18 +64,6 @@ impl TextRange { end, } } - - /// Offset this range by some amount. - /// - /// This is typically used to convert a range from one coordinate space to - /// another, such as from within a substring to within an entire document. - #[inline] - pub fn offset(self, offset: TextSize) -> TextRange { - TextRange( - self.start().checked_add(offset).unwrap(), - self.end().checked_add(offset).unwrap(), - ) - } } /// Identity methods. |