Skip to content

Commit a818648

Browse files
committed
remove unnecessary function
1 parent 71c0bd5 commit a818648

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3776,15 +3776,9 @@ pub impl Parser {
37763776
})
37773777
}
37783778

3779-
fn parse_type_decl(&self) -> (BytePos, ident) {
3780-
let lo = self.last_span.lo;
3781-
let id = self.parse_ident();
3782-
(lo, id)
3783-
}
3784-
37853779
// parse type Foo = Bar;
37863780
fn parse_item_type(&self) -> item_info {
3787-
let (_, ident) = self.parse_type_decl();
3781+
let ident = self.parse_ident();
37883782
self.parse_region_param();
37893783
let tps = self.parse_generics();
37903784
self.expect(&token::EQ);

0 commit comments

Comments
 (0)