remove 3-line used-once function

This commit is contained in:
John Clements 2013-04-19 11:19:37 -07:00
parent 7ef92ba246
commit 1abc1be81a

View File

@ -3350,13 +3350,7 @@ pub impl Parser {
a_var
}
fn parse_dtor(&self, attrs: ~[attribute]) -> class_contents {
let lo = self.last_span.lo;
let body = self.parse_block();
dtor_decl(body, attrs, mk_sp(lo, self.last_span.hi))
}
// parse an item in a struct definition
// parse an element of a struct definition
fn parse_struct_decl_field(&self) -> class_contents {
if self.try_parse_obsolete_priv_section() {
@ -3378,7 +3372,9 @@ pub impl Parser {
}
if self.eat_keyword(&~"drop") {
return self.parse_dtor(attrs);
let lo = self.last_span.lo;
let body = self.parse_block();
return dtor_decl(body, attrs, mk_sp(lo, self.last_span.hi))
}
else {
return members(~[self.parse_single_struct_field(inherited)]);