@@ -90,7 +90,6 @@ pub struct Visitor<E> {
9090 visit_trait_method : @fn ( & trait_method , ( E , vt < E > ) ) ,
9191 visit_struct_def : @fn ( @struct_def , ident , & Generics , node_id , ( E , vt < E > ) ) ,
9292 visit_struct_field : @fn ( @struct_field , ( E , vt < E > ) ) ,
93- visit_struct_method : @fn ( @method , ( E , vt < E > ) )
9493}
9594
9695pub type visitor < E > = @Visitor < E > ;
@@ -116,7 +115,6 @@ pub fn default_visitor<E: Copy>() -> visitor<E> {
116115 visit_trait_method : |a, b|visit_trait_method :: < E > ( a, b) ,
117116 visit_struct_def : |a, b, c, d, e|visit_struct_def :: < E > ( a, b, c, d, e) ,
118117 visit_struct_field : |a, b|visit_struct_field :: < E > ( a, b) ,
119- visit_struct_method : |a, b|visit_struct_method :: < E > ( a, b)
120118 } ;
121119}
122120
@@ -414,10 +412,6 @@ pub fn visit_struct_field<E: Copy>(sf: &struct_field, (e, v): (E, vt<E>)) {
414412 ( v. visit_ty) ( sf. node. ty, ( e, v) ) ;
415413}
416414
417- pub fn visit_struct_method < E : Copy > ( m : & method , ( e, v) : ( E , vt < E > ) ) {
418- visit_method_helper ( m, ( e, v) ) ;
419- }
420-
421415pub fn visit_block<E : Copy >( b: & blk, ( e, v) : ( E , vt<E >) ) {
422416 for b. node. view_items. iter( ) . advance |vi| {
423417 ( v. visit_view_item) ( * vi, ( copy e, v) ) ;
@@ -729,10 +723,6 @@ pub fn mk_simple_visitor(v: simple_visitor) -> vt<()> {
729723 f( sf) ;
730724 visit_struct_field( sf, ( e, v) ) ;
731725 }
732- fn v_struct_method( f: @fn ( @method) , m: @method, ( e, v) : ( ( ) , vt<( ) >) ) {
733- f( m) ;
734- visit_struct_method( m, ( e, v) ) ;
735- }
736726 return mk_vt( @Visitor {
737727 visit_mod: |a, b, c, d|v_mod( v. visit_mod, a, b, c, d) ,
738728 visit_view_item: |a, b| v_view_item( v. visit_view_item, a, b) ,
@@ -760,7 +750,5 @@ pub fn mk_simple_visitor(v: simple_visitor) -> vt<()> {
760750 v_struct_def( v. visit_struct_def, a, b, c, d, e) ,
761751 visit_struct_field: |a, b|
762752 v_struct_field( v. visit_struct_field, a, b) ,
763- visit_struct_method: |a, b|
764- v_struct_method( v. visit_struct_method, a, b)
765753 } ) ;
766754}
0 commit comments