File tree Expand file tree Collapse file tree 2 files changed +1
-21
lines changed
branches/auto/src/librustc/util Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
13
13
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
14
14
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
15
15
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16
- refs/heads/auto: fdcb1045174ad8aa9e115aa0cbb07dc649421e5a
16
+ refs/heads/auto: 841eb1c56faf033eba03444e208c4d2c5fd34d50
17
17
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
18
18
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
19
19
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
Original file line number Diff line number Diff line change 11
11
#![ allow( non_camel_case_types) ]
12
12
13
13
use syntax:: ast;
14
- use syntax:: codemap:: { Span } ;
15
14
use syntax:: visit;
16
15
use syntax:: visit:: Visitor ;
17
16
@@ -64,12 +63,6 @@ pub fn indenter() -> _indenter {
64
63
_indenter ( ( ) )
65
64
}
66
65
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
-
73
66
struct LoopQueryVisitor < ' a > {
74
67
p : ' a |& ast:: Expr_ | -> bool ,
75
68
flag : bool ,
@@ -120,16 +113,3 @@ pub fn block_query(b: ast::P<ast::Block>, p: |&ast::Expr| -> bool) -> bool {
120
113
visit:: walk_block ( & mut v, b, ( ) ) ;
121
114
return v. flag ;
122
115
}
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
-
You can’t perform that action at this time.
0 commit comments