Skip to content

Commit aa9a992

Browse files
committed
libsyntax: Remove duplicate methods.
1 parent 47772bc commit aa9a992

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/librustc/middle/typeck/check/mod.rs

-5
Original file line numberDiff line numberDiff line change
@@ -722,11 +722,6 @@ impl FnCtxt {
722722
}
723723
}
724724

725-
pub fn expr_to_str(&self, expr: @ast::expr) -> ~str {
726-
fmt!("expr(%?:%s)", expr.id,
727-
pprust::expr_to_str(expr, self.tcx().sess.intr()))
728-
}
729-
730725
pub fn block_region(&self) -> ty::Region {
731726
ty::re_scope(self.region_lb)
732727
}

src/libsyntax/parse/parser.rs

-7
Original file line numberDiff line numberDiff line change
@@ -1063,13 +1063,6 @@ impl Parser {
10631063
}
10641064
}
10651065

1066-
pub fn token_is_lifetime(&self, tok: &token::Token) -> bool {
1067-
match *tok {
1068-
token::LIFETIME(_) => true,
1069-
_ => false
1070-
}
1071-
}
1072-
10731066
/// Parses a single lifetime
10741067
// matches lifetime = ( LIFETIME ) | ( IDENT / )
10751068
pub fn parse_lifetime(&self) -> ast::Lifetime {

0 commit comments

Comments
 (0)