1
Fork 0

syntax: Remove dead code from the parser

This commit is contained in:
Erick Tryzelaar 2013-03-26 21:26:49 -07:00
parent b26ae289d0
commit 2e0b363a7f

View file

@ -3116,14 +3116,6 @@ pub impl Parser {
// impl<T> Foo { ... }
// impl<T> ToStr for ~[T] { ... }
fn parse_item_impl(&self, visibility: ast::visibility) -> item_info {
fn wrap_path(p: &Parser, pt: @path) -> @Ty {
@Ty {
id: p.get_id(),
node: ty_path(pt, p.get_id()),
span: pt.span,
}
}
// First, parse type parameters if necessary.
let generics = self.parse_generics();