libsyntax: Remove duplicate methods.
This commit is contained in:
parent
47772bcb73
commit
aa9a992f3e
|
@ -722,11 +722,6 @@ impl FnCtxt {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn expr_to_str(&self, expr: @ast::expr) -> ~str {
|
|
||||||
fmt!("expr(%?:%s)", expr.id,
|
|
||||||
pprust::expr_to_str(expr, self.tcx().sess.intr()))
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn block_region(&self) -> ty::Region {
|
pub fn block_region(&self) -> ty::Region {
|
||||||
ty::re_scope(self.region_lb)
|
ty::re_scope(self.region_lb)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1063,13 +1063,6 @@ impl Parser {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn token_is_lifetime(&self, tok: &token::Token) -> bool {
|
|
||||||
match *tok {
|
|
||||||
token::LIFETIME(_) => true,
|
|
||||||
_ => false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parses a single lifetime
|
/// Parses a single lifetime
|
||||||
// matches lifetime = ( LIFETIME ) | ( IDENT / )
|
// matches lifetime = ( LIFETIME ) | ( IDENT / )
|
||||||
pub fn parse_lifetime(&self) -> ast::Lifetime {
|
pub fn parse_lifetime(&self) -> ast::Lifetime {
|
||||||
|
|
Loading…
Reference in New Issue