Skip to content

Commit 4af075d

Browse files
committed
Remove SourceChangeBuilder::{insert,remove}_snippet
All assists have been migrated to use the structured snippet versions of these methods.
1 parent eb6d6ba commit 4af075d

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

crates/ide-db/src/source_change.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -289,30 +289,10 @@ impl SourceChangeBuilder {
289289
pub fn insert(&mut self, offset: TextSize, text: impl Into<String>) {
290290
self.edit.insert(offset, text.into())
291291
}
292-
/// Append specified `snippet` at the given `offset`
293-
pub fn insert_snippet(
294-
&mut self,
295-
_cap: SnippetCap,
296-
offset: TextSize,
297-
snippet: impl Into<String>,
298-
) {
299-
self.source_change.is_snippet = true;
300-
self.insert(offset, snippet);
301-
}
302292
/// Replaces specified `range` of text with a given string.
303293
pub fn replace(&mut self, range: TextRange, replace_with: impl Into<String>) {
304294
self.edit.replace(range, replace_with.into())
305295
}
306-
/// Replaces specified `range` of text with a given `snippet`.
307-
pub fn replace_snippet(
308-
&mut self,
309-
_cap: SnippetCap,
310-
range: TextRange,
311-
snippet: impl Into<String>,
312-
) {
313-
self.source_change.is_snippet = true;
314-
self.replace(range, snippet);
315-
}
316296
pub fn replace_ast<N: AstNode>(&mut self, old: N, new: N) {
317297
algo::diff(old.syntax(), new.syntax()).into_text_edit(&mut self.edit)
318298
}

0 commit comments

Comments
 (0)