remove 3-line used-once function
This commit is contained in:
parent
7ef92ba246
commit
1abc1be81a
@ -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)]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user