aboutsummaryrefslogtreecommitdiff
path: root/crates/text_edit
diff options
context:
space:
mode:
Diffstat (limited to 'crates/text_edit')
-rw-r--r--crates/text_edit/src/lib.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/text_edit/src/lib.rs b/crates/text_edit/src/lib.rs
index 9eef7a890..eb3c8caa2 100644
--- a/crates/text_edit/src/lib.rs
+++ b/crates/text_edit/src/lib.rs
@@ -48,10 +48,6 @@ impl TextEdit {
48 TextEditBuilder::default() 48 TextEditBuilder::default()
49 } 49 }
50 50
51 pub fn into_builder(self) -> TextEditBuilder {
52 TextEditBuilder { indels: self.indels }
53 }
54
55 pub fn insert(offset: TextSize, text: String) -> TextEdit { 51 pub fn insert(offset: TextSize, text: String) -> TextEdit {
56 let mut builder = TextEdit::builder(); 52 let mut builder = TextEdit::builder();
57 builder.insert(offset, text); 53 builder.insert(offset, text);