Skip to content

Commit 5f0a1d5

Browse files
committed
---
yaml --- r: 150526 b: refs/heads/try2 c: 841eb1c h: refs/heads/master v: v3
1 parent 0c44f08 commit 5f0a1d5

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: fdcb1045174ad8aa9e115aa0cbb07dc649421e5a
8+
refs/heads/try2: 841eb1c56faf033eba03444e208c4d2c5fd34d50
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/util/common.rs

Lines changed: 0 additions & 20 deletions
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)