From 99d0100c452276af71263ad62541abb06aee0a2f Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 4 Feb 2022 12:07:30 +0100 Subject: [PATCH] Remove unused `bytes_at` method --- crates/editor/src/multi_buffer.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crates/editor/src/multi_buffer.rs b/crates/editor/src/multi_buffer.rs index 0554e1b8b5..3870323048 100644 --- a/crates/editor/src/multi_buffer.rs +++ b/crates/editor/src/multi_buffer.rs @@ -1314,12 +1314,6 @@ impl MultiBufferSnapshot { } } - pub fn bytes_at<'a, T: ToOffset>(&'a self, position: T) -> impl 'a + Iterator { - self.bytes_in_range(position.to_offset(self)..self.len()) - .flatten() - .copied() - } - pub fn buffer_rows<'a>(&'a self, start_row: u32) -> MultiBufferRows<'a> { let mut result = MultiBufferRows { buffer_row_range: 0..0,