@@ -186,17 +186,6 @@ fn encode_module_item_paths(ebml_w: ebml::writer, ecx: @encode_ctxt,
186
186
encode_name_and_def_id( ebml_w, it. ident, it. id) ;
187
187
}
188
188
}
189
- item_res( _, tps, _, _, ctor_id, _) {
190
- ebml_w. wr_tag( tag_paths_data_item) { ||
191
- encode_name_and_def_id( ebml_w, it. ident, ctor_id) ;
192
- }
193
- // The same ident has to be added twice (with different positions)
194
- // because it's for both the ctor and the dtor.
195
- add_to_index( ebml_w, path, index, it. ident) ;
196
- ebml_w. wr_tag( tag_paths_data_item) { ||
197
- encode_name_and_def_id( ebml_w, it. ident, it. id) ;
198
- }
199
- }
200
189
item_class( _, _, items, ctor, m_dtor, _) {
201
190
ebml_w. wr_tag( tag_paths_data_item) { ||
202
191
encode_name_and_def_id( ebml_w, it. ident, it. id) ;
@@ -698,34 +687,6 @@ fn encode_info_for_item(ecx: @encode_ctxt, ebml_w: ebml::writer, item: @item,
698
687
encode_index( ebml_w, bkts, write_int) ;
699
688
ebml_w. end_tag( ) ;
700
689
}
701
- item_res( _, tps, _, _, ctor_id, rp) {
702
- add_to_index( ) ;
703
- let fn_ty = node_id_to_type( tcx, ctor_id) ;
704
-
705
- ebml_w. start_tag( tag_items_data_item) ;
706
- encode_def_id( ebml_w, local_def( ctor_id) ) ;
707
- encode_family( ebml_w, 'y' ) ;
708
- encode_type_param_bounds( ebml_w, ecx, tps) ;
709
- encode_type( ecx, ebml_w, ty:: ty_fn_ret( fn_ty) ) ;
710
- encode_name( ebml_w, item. ident) ;
711
- ecx. encode_inlined_item( ecx, ebml_w, path, ii_item( item) ) ;
712
- if ( tps. len( ) == 0 u) {
713
- encode_symbol( ecx, ebml_w, item. id) ;
714
- }
715
- encode_path( ebml_w, path, ast_map:: path_name( item. ident) ) ;
716
- encode_region_param( ebml_w, rp) ;
717
- ebml_w. end_tag( ) ;
718
-
719
- * index += [ { val: ctor_id, pos: ebml_w. writer. tell( ) } ] ;
720
- ebml_w. start_tag( tag_items_data_item) ;
721
- encode_def_id( ebml_w, local_def( ctor_id) ) ;
722
- encode_family( ebml_w, 'f' ) ;
723
- encode_type_param_bounds( ebml_w, ecx, tps) ;
724
- encode_type( ecx, ebml_w, fn_ty) ;
725
- encode_parent_item( ebml_w, local_def( item. id) ) ;
726
- encode_path( ebml_w, path, ast_map:: path_name( item. ident) ) ;
727
- ebml_w. end_tag( ) ;
728
- }
729
690
item_impl( tps, rp, ifce, _, methods) {
730
691
add_to_index( ) ;
731
692
ebml_w. start_tag( tag_items_data_item) ;
0 commit comments