Skip to content

Commit 3dfb174

Browse files
committed
Remove some dead code from kind checking.
1 parent 574b3e8 commit 3dfb174

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/rustc/middle/kind.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,12 @@ fn kind_to_str(k: kind) -> str {
5555
type rval_map = std::map::hashmap<node_id, ()>;
5656

5757
type ctx = {tcx: ty::ctxt,
58-
rval_map: rval_map,
5958
method_map: typeck::method_map,
6059
last_use_map: liveness::last_use_map};
6160

6261
fn check_crate(tcx: ty::ctxt, method_map: typeck::method_map,
63-
last_use_map: liveness::last_use_map, crate: @crate)
64-
-> rval_map {
62+
last_use_map: liveness::last_use_map, crate: @crate) {
6563
let ctx = {tcx: tcx,
66-
rval_map: std::map::int_hash(),
6764
method_map: method_map,
6865
last_use_map: last_use_map};
6966
let visit = visit::mk_vt(@{
@@ -76,7 +73,6 @@ fn check_crate(tcx: ty::ctxt, method_map: typeck::method_map,
7673
});
7774
visit::visit_crate(*crate, ctx, visit);
7875
tcx.sess.abort_if_errors();
79-
ret ctx.rval_map;
8076
}
8177

8278
type check_fn = fn@(ctx, option<@freevar_entry>, bool, ty::t, sp: span);

0 commit comments

Comments
 (0)