@@ -370,10 +370,6 @@ pub fn print_opt_lifetime(s: @ps, lifetime: Option<@ast::Lifetime>) {
370
370
}
371
371
372
372
pub fn print_type(s: @ps, &&ty: @ast::Ty) {
373
- print_type_ex(s, ty, false);
374
- }
375
-
376
- pub fn print_type_ex(s: @ps, &&ty: @ast::Ty, print_colons: bool) {
377
373
maybe_print_comment(s, ty.span.lo);
378
374
ibox(s, 0u);
379
375
match ty.node {
@@ -415,7 +411,7 @@ pub fn print_type_ex(s: @ps, &&ty: @ast::Ty, print_colons: bool) {
415
411
f.purity, f.onceness, &f.decl, None,
416
412
None, None);
417
413
}
418
- ast::ty_path(path, _) => print_path(s, path, print_colons ),
414
+ ast::ty_path(path, _) => print_path(s, path, false ),
419
415
ast::ty_fixed_length_vec(ref mt, v) => {
420
416
word(s.s, ~" [ ");
421
417
match mt.mutbl {
@@ -1211,7 +1207,7 @@ pub fn print_expr(s: @ps, &&expr: @ast::expr) {
1211
1207
print_expr(s, expr);
1212
1208
space(s.s);
1213
1209
word_space(s, ~" as ");
1214
- print_type_ex (s, ty, true );
1210
+ print_type (s, ty);
1215
1211
}
1216
1212
ast::expr_if(test, ref blk, elseopt) => {
1217
1213
print_if(s, test, blk, elseopt, false);
0 commit comments