Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/ast/node_ext.rs')
-rw-r--r--crates/syntax/src/ast/node_ext.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/crates/syntax/src/ast/node_ext.rs b/crates/syntax/src/ast/node_ext.rs
index bc32220b41..daa463261a 100644
--- a/crates/syntax/src/ast/node_ext.rs
+++ b/crates/syntax/src/ast/node_ext.rs
@@ -283,11 +283,6 @@ impl ast::Path {
self.first_qualifier_or_self().segment()
}
- // FIXME: Check usages of Self::segments, they might be wrong because of the logic of the bloew function
- pub fn segments_of_this_path_only_rev(&self) -> impl Iterator<Item = ast::PathSegment> + Clone {
- self.qualifiers_and_self().filter_map(|it| it.segment())
- }
-
pub fn segments(&self) -> impl Iterator<Item = ast::PathSegment> + Clone {
let path_range = self.syntax().text_range();
successors(self.first_segment(), move |p| {
@@ -305,10 +300,6 @@ impl ast::Path {
successors(self.qualifier(), |p| p.qualifier())
}
- pub fn qualifiers_and_self(&self) -> impl Iterator<Item = ast::Path> + Clone {
- successors(Some(self.clone()), |p| p.qualifier())
- }
-
pub fn top_path(&self) -> ast::Path {
let mut this = self.clone();
while let Some(path) = this.parent_path() {