Skip to content

Commit b94f6e7

Browse files
committed
---
yaml --- r: 1505 b: refs/heads/master c: 04a0a6f h: refs/heads/master i: 1503: ae98ef0 v: v3
1 parent 0218ff3 commit b94f6e7

File tree

4 files changed

+2
-16
lines changed

4 files changed

+2
-16
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: f6682280f3e3e8923c283df8277964b6cbf8d8b8
2+
refs/heads/master: 04a0a6fbef0cc7c3c89fbbbeff68ab2c999d9592

trunk/src/comp/middle/trans.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,8 +1144,6 @@ fn linearize_ty_params(@block_ctxt cx, @ty.t t)
11441144
}
11451145
ret t;
11461146
}
1147-
1148-
fn fold_tag_ty(@ty.t t) -> @ty.t { ret t; }
11491147
}
11501148

11511149

trunk/src/comp/middle/ty.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ fn ty_to_str(&@t typ) -> str {
294294

295295
type ty_fold = state obj {
296296
fn fold_simple_ty(@t ty) -> @t;
297-
fn fold_tag_ty(@t ty) -> @t;
298297
};
299298

300299
fn fold_ty(ty_fold fld, @t ty) -> @t {
@@ -323,8 +322,7 @@ fn fold_ty(ty_fold fld, @t ty) -> @t {
323322
for (@t subty in subtys) {
324323
new_subtys += vec(fold_ty(fld, subty));
325324
}
326-
auto typ = rewrap(ty, ty_tag(tid, new_subtys));
327-
ret fld.fold_tag_ty(typ);
325+
ret rewrap(ty, ty_tag(tid, new_subtys));
328326
}
329327
case (ty_tup(?subtys)) {
330328
let vec[@t] new_subtys = vec();
@@ -613,8 +611,6 @@ fn count_ty_params(@t ty) -> uint {
613611
}
614612
ret ty;
615613
}
616-
617-
fn fold_tag_ty(@t ty) -> @t { ret ty; }
618614
}
619615

620616
let vec[ast.def_id] param_ids_inner = vec();
@@ -1433,8 +1429,6 @@ fn unify(@ty.t expected, @ty.t actual, &unify_handler handler)
14331429
}
14341430
}
14351431
}
1436-
1437-
fn fold_tag_ty(@t typ) -> @t { ret typ; }
14381432
}
14391433

14401434
ret ty.fold_ty(folder(bindings), typ);
@@ -1554,8 +1548,6 @@ fn replace_type_params(@t typ, hashmap[ast.def_id,@t] param_map) -> @t {
15541548
}
15551549
}
15561550
}
1557-
1558-
fn fold_tag_ty(@t typ) -> @t { ret typ; }
15591551
}
15601552
auto replacer = param_replacer(param_map);
15611553
ret fold_ty(replacer, typ);

trunk/src/comp/middle/typeck.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ fn generalize_ty(@crate_ctxt cx, @ty.t t) -> @ty.t {
7373
}
7474
ret t;
7575
}
76-
77-
fn fold_tag_ty(@ty.t t) -> @ty.t { ret t; }
7876
}
7977

8078
auto generalizer = ty_generalizer(cx, @common.new_def_hash[@ty.t]());
@@ -116,8 +114,6 @@ fn substitute_ty_params(&@crate_ctxt ccx,
116114
case (_) { ret typ; }
117115
}
118116
}
119-
120-
fn fold_tag_ty(@ty.t typ) -> @ty.t { ret typ; }
121117
}
122118

123119
fn hash_int(&int x) -> uint { ret x as uint; }

0 commit comments

Comments
 (0)