@@ -227,8 +227,7 @@ type ctxt =
227
227
iface_method_cache : hashmap < def_id , @[ method ] > ,
228
228
ty_param_bounds : hashmap < ast:: node_id , param_bounds > ,
229
229
inferred_modes : hashmap < ast:: node_id , ast:: mode > ,
230
- borrowings : hashmap < ast:: node_id , ( ) > ,
231
- normalized_cache : hashmap < t , t > } ;
230
+ borrowings : hashmap < ast:: node_id , ( ) > } ;
232
231
233
232
type t_box = @{ struct : sty ,
234
233
id : uint ,
@@ -462,8 +461,7 @@ fn mk_ctxt(s: session::session, dm: resolve::def_map, amap: ast_map::map,
462
461
iface_method_cache: new_def_hash ( ) ,
463
462
ty_param_bounds: map:: int_hash ( ) ,
464
463
inferred_modes: map:: int_hash ( ) ,
465
- borrowings: map:: int_hash ( ) ,
466
- normalized_cache: new_ty_hash ( ) }
464
+ borrowings: map:: int_hash ( ) }
467
465
}
468
466
469
467
@@ -2682,11 +2680,6 @@ fn ty_params_to_tys(tcx: ty::ctxt, tps: [ast::ty_param]) -> [t] {
2682
2680
Returns an equivalent type with all the typedefs and self regions removed
2683
2681
"]
2684
2682
fn normalize_ty( cx: ctxt, t: t) -> t {
2685
- alt cx. normalized_cache. find( t) {
2686
- some( t) { ret t; }
2687
- none { }
2688
- }
2689
-
2690
2683
let t = alt get( t) . struct {
2691
2684
ty_enum( did, r) {
2692
2685
alt r. self_r {
@@ -2700,9 +2693,7 @@ fn normalize_ty(cx: ctxt, t: t) -> t {
2700
2693
_ { t }
2701
2694
} ;
2702
2695
let sty = fold_sty( get( t) . struct ) { |t| normalize_ty( cx, t) } ;
2703
- let t_norm = mk_t( cx, sty) ;
2704
- cx. normalized_cache. insert( t, t_norm) ;
2705
- ret t_norm;
2696
+ mk_t( cx, sty)
2706
2697
}
2707
2698
2708
2699
// Local Variables:
0 commit comments