Skip to content

Commit 2e0b363

Browse files
committed
syntax: Remove dead code from the parser
1 parent b26ae28 commit 2e0b363

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3116,14 +3116,6 @@ pub impl Parser {
31163116
// impl<T> Foo { ... }
31173117
// impl<T> ToStr for ~[T] { ... }
31183118
fn parse_item_impl(&self, visibility: ast::visibility) -> item_info {
3119-
fn wrap_path(p: &Parser, pt: @path) -> @Ty {
3120-
@Ty {
3121-
id: p.get_id(),
3122-
node: ty_path(pt, p.get_id()),
3123-
span: pt.span,
3124-
}
3125-
}
3126-
31273119
// First, parse type parameters if necessary.
31283120
let generics = self.parse_generics();
31293121

0 commit comments

Comments
 (0)