Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--crates/syntax/src/ast/edit_in_place.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/crates/syntax/src/ast/edit_in_place.rs b/crates/syntax/src/ast/edit_in_place.rs
index a893f65dc3..7e2e26b4fd 100644
--- a/crates/syntax/src/ast/edit_in_place.rs
+++ b/crates/syntax/src/ast/edit_in_place.rs
@@ -43,21 +43,6 @@ pub trait AttrsOwnerEdit: ast::HasAttrs {
impl<T: ast::HasAttrs> AttrsOwnerEdit for T {}
impl ast::GenericParamList {
- /// Removes the existing generic param
- pub fn remove_generic_param(&self, generic_param: ast::GenericParam) {
- if let Some(previous) = generic_param.syntax().prev_sibling() {
- if let Some(next_token) = previous.next_sibling_or_token() {
- ted::remove_all(next_token..=generic_param.syntax().clone().into());
- }
- } else if let Some(next) = generic_param.syntax().next_sibling() {
- if let Some(next_token) = next.prev_sibling_or_token() {
- ted::remove_all(generic_param.syntax().clone().into()..=next_token);
- }
- } else {
- ted::remove(generic_param.syntax());
- }
- }
-
/// Constructs a matching [`ast::GenericArgList`]
pub fn to_generic_args(&self) -> ast::GenericArgList {
let args = self.generic_params().filter_map(|param| match param {