@@ -235,22 +235,6 @@ fn encode_region(ecx: &EncodeContext,
235235 rbml_w. end_tag ( ) ;
236236}
237237
238- fn encode_method_fty < ' a , ' tcx > ( ecx : & EncodeContext < ' a , ' tcx > ,
239- rbml_w : & mut Encoder ,
240- typ : & ty:: BareFnTy < ' tcx > ) {
241- rbml_w. start_tag ( tag_item_method_fty) ;
242-
243- let ty_str_ctxt = & tyencode:: ctxt {
244- diag : ecx. diag ,
245- ds : def_to_string,
246- tcx : ecx. tcx ,
247- abbrevs : & ecx. type_abbrevs
248- } ;
249- tyencode:: enc_bare_fn_ty ( rbml_w, ty_str_ctxt, typ) ;
250-
251- rbml_w. end_tag ( ) ;
252- }
253-
254238fn encode_symbol ( ecx : & EncodeContext ,
255239 rbml_w : & mut Encoder ,
256240 id : NodeId ) {
@@ -755,7 +739,6 @@ fn encode_method_ty_fields<'a, 'tcx>(ecx: &EncodeContext<'a, 'tcx>,
755739 encode_generics ( rbml_w, ecx, index,
756740 & method_ty. generics , & method_ty. predicates ,
757741 tag_method_ty_generics) ;
758- encode_method_fty ( ecx, rbml_w, & method_ty. fty ) ;
759742 encode_visibility ( rbml_w, method_ty. vis ) ;
760743 encode_explicit_self ( rbml_w, & method_ty. explicit_self ) ;
761744 match method_ty. explicit_self {
@@ -826,7 +809,6 @@ fn encode_info_for_method<'a, 'tcx>(ecx: &EncodeContext<'a, 'tcx>,
826809 let stab = stability:: lookup ( ecx. tcx , m. def_id ) ;
827810 encode_stability ( rbml_w, stab) ;
828811
829- // The type for methods gets encoded twice, which is unfortunate.
830812 encode_bounds_and_type_for_item ( rbml_w, ecx, index, m. def_id . local_id ( ) ) ;
831813
832814 let elem = ast_map:: PathName ( m. name ) ;
0 commit comments