Skip to content

Commit 239cf80

Browse files
committed
rustc: Remove dead code in encoder
1 parent c8426d1 commit 239cf80

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/rustc/metadata/encoder.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,15 +406,13 @@ fn encode_info_for_mod(ecx: @encode_ctxt, ebml_w: ebml::writer, md: _mod,
406406
alt ecx.tcx.items.get(did.node) {
407407
ast_map::node_item(it@@{node: cl@item_class(*),_},_) {
408408
ebml_w.wr_str(def_to_str(local_def(it.id)));
409-
some(ty::lookup_item_type(ecx.tcx, did).ty)
410409
}
411410
ast_map::node_item(@{node: item_impl(_,_,
412411
some(ifce),_,_),_},_) {
413412
ebml_w.wr_str(def_to_str(did));
414-
some(ty::node_id_to_type(ecx.tcx, ifce.id))
415413
}
416414
_ {
417-
ebml_w.wr_str(def_to_str(did)); none
415+
ebml_w.wr_str(def_to_str(did));
418416
}
419417
};
420418
ebml_w.end_tag();

0 commit comments

Comments
 (0)