about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDropDemBits <r3usrlnd@gmail.com>2024-02-15 21:19:37 -0500
committerDropDemBits <r3usrlnd@gmail.com>2024-02-15 21:34:29 -0500
commit4af075dcda72ff09e6782674d11f3c48d312d7d7 (patch)
tree1a5b9a234964f7f0c2572a8b3d1b4f9a11aa5779
parenteb6d6ba17c96d09bcb4def21a2a3c9c91ef91181 (diff)
downloadrust-4af075dcda72ff09e6782674d11f3c48d312d7d7.tar.gz
rust-4af075dcda72ff09e6782674d11f3c48d312d7d7.zip
Remove `SourceChangeBuilder::{insert,remove}_snippet`
All assists have been migrated to use the structured snippet versions of these methods.
-rw-r--r--crates/ide-db/src/source_change.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/crates/ide-db/src/source_change.rs b/crates/ide-db/src/source_change.rs
index f09401f70af..f59d8d08c89 100644
--- a/crates/ide-db/src/source_change.rs
+++ b/crates/ide-db/src/source_change.rs
@@ -289,30 +289,10 @@ impl SourceChangeBuilder {
     pub fn insert(&mut self, offset: TextSize, text: impl Into<String>) {
         self.edit.insert(offset, text.into())
     }
-    /// Append specified `snippet` at the given `offset`
-    pub fn insert_snippet(
-        &mut self,
-        _cap: SnippetCap,
-        offset: TextSize,
-        snippet: impl Into<String>,
-    ) {
-        self.source_change.is_snippet = true;
-        self.insert(offset, snippet);
-    }
     /// Replaces specified `range` of text with a given string.
     pub fn replace(&mut self, range: TextRange, replace_with: impl Into<String>) {
         self.edit.replace(range, replace_with.into())
     }
-    /// Replaces specified `range` of text with a given `snippet`.
-    pub fn replace_snippet(
-        &mut self,
-        _cap: SnippetCap,
-        range: TextRange,
-        snippet: impl Into<String>,
-    ) {
-        self.source_change.is_snippet = true;
-        self.replace(range, snippet);
-    }
     pub fn replace_ast<N: AstNode>(&mut self, old: N, new: N) {
         algo::diff(old.syntax(), new.syntax()).into_text_edit(&mut self.edit)
     }