Skip to content

Commit 841eb1c

Browse files
committed
util: common: remove dead code
1 parent fdcb104 commit 841eb1c

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/librustc/util/common.rs

-20
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#![allow(non_camel_case_types)]
1212

1313
use syntax::ast;
14-
use syntax::codemap::{Span};
1514
use syntax::visit;
1615
use syntax::visit::Visitor;
1716

@@ -64,12 +63,6 @@ pub fn indenter() -> _indenter {
6463
_indenter(())
6564
}
6665

67-
pub fn field_expr(f: ast::Field) -> @ast::Expr { return f.expr; }
68-
69-
pub fn field_exprs(fields: Vec<ast::Field> ) -> Vec<@ast::Expr> {
70-
fields.move_iter().map(|f| f.expr).collect()
71-
}
72-
7366
struct LoopQueryVisitor<'a> {
7467
p: 'a |&ast::Expr_| -> bool,
7568
flag: bool,
@@ -120,16 +113,3 @@ pub fn block_query(b: ast::P<ast::Block>, p: |&ast::Expr| -> bool) -> bool {
120113
visit::walk_block(&mut v, b, ());
121114
return v.flag;
122115
}
123-
124-
pub fn local_rhs_span(l: &ast::Local, def: Span) -> Span {
125-
match l.init {
126-
Some(i) => return i.span,
127-
_ => return def
128-
}
129-
}
130-
131-
pub fn pluralize(n: uint, s: ~str) -> ~str {
132-
if n == 1 { s }
133-
else { format!("{}s", s) }
134-
}
135-

0 commit comments

Comments
 (0)