Skip to content

Commit 1e46dd8

Browse files
committed
Rust: Remove redundant code.
1 parent 194363c commit 1e46dd8

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

rust/extractor/src/translate/mappings.rs

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -63,37 +63,3 @@ impl TextValue for ast::RangePat {
6363
self.op_token().map(|x| x.text().to_string())
6464
}
6565
}
66-
67-
pub trait PathAst: AstNode {
68-
fn path(&self) -> Option<ast::Path>;
69-
}
70-
71-
impl PathAst for ast::PathExpr {
72-
fn path(&self) -> Option<ast::Path> {
73-
self.path()
74-
}
75-
}
76-
77-
impl PathAst for ast::RecordExpr {
78-
fn path(&self) -> Option<ast::Path> {
79-
self.path()
80-
}
81-
}
82-
83-
impl PathAst for ast::PathPat {
84-
fn path(&self) -> Option<ast::Path> {
85-
self.path()
86-
}
87-
}
88-
89-
impl PathAst for ast::RecordPat {
90-
fn path(&self) -> Option<ast::Path> {
91-
self.path()
92-
}
93-
}
94-
95-
impl PathAst for ast::TupleStructPat {
96-
fn path(&self) -> Option<ast::Path> {
97-
self.path()
98-
}
99-
}

0 commit comments

Comments
 (0)