@@ -90,7 +90,6 @@ pub struct Visitor<E> {
90
90
visit_trait_method : @fn ( & trait_method , ( E , vt < E > ) ) ,
91
91
visit_struct_def : @fn ( @struct_def , ident , & Generics , node_id , ( E , vt < E > ) ) ,
92
92
visit_struct_field : @fn ( @struct_field , ( E , vt < E > ) ) ,
93
- visit_struct_method : @fn ( @method , ( E , vt < E > ) )
94
93
}
95
94
96
95
pub type visitor < E > = @Visitor < E > ;
@@ -116,7 +115,6 @@ pub fn default_visitor<E: Copy>() -> visitor<E> {
116
115
visit_trait_method : |a, b|visit_trait_method :: < E > ( a, b) ,
117
116
visit_struct_def : |a, b, c, d, e|visit_struct_def :: < E > ( a, b, c, d, e) ,
118
117
visit_struct_field : |a, b|visit_struct_field :: < E > ( a, b) ,
119
- visit_struct_method : |a, b|visit_struct_method :: < E > ( a, b)
120
118
} ;
121
119
}
122
120
@@ -414,10 +412,6 @@ pub fn visit_struct_field<E: Copy>(sf: &struct_field, (e, v): (E, vt<E>)) {
414
412
( v. visit_ty) ( sf. node. ty, ( e, v) ) ;
415
413
}
416
414
417
- pub fn visit_struct_method < E : Copy > ( m : & method , ( e, v) : ( E , vt < E > ) ) {
418
- visit_method_helper ( m, ( e, v) ) ;
419
- }
420
-
421
415
pub fn visit_block<E : Copy >( b: & blk, ( e, v) : ( E , vt<E >) ) {
422
416
for b. node. view_items. iter( ) . advance |vi| {
423
417
( v. visit_view_item) ( * vi, ( copy e, v) ) ;
@@ -729,10 +723,6 @@ pub fn mk_simple_visitor(v: simple_visitor) -> vt<()> {
729
723
f( sf) ;
730
724
visit_struct_field( sf, ( e, v) ) ;
731
725
}
732
- fn v_struct_method( f: @fn ( @method) , m: @method, ( e, v) : ( ( ) , vt<( ) >) ) {
733
- f( m) ;
734
- visit_struct_method( m, ( e, v) ) ;
735
- }
736
726
return mk_vt( @Visitor {
737
727
visit_mod: |a, b, c, d|v_mod( v. visit_mod, a, b, c, d) ,
738
728
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<()> {
760
750
v_struct_def( v. visit_struct_def, a, b, c, d, e) ,
761
751
visit_struct_field: |a, b|
762
752
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)
765
753
} ) ;
766
754
}
0 commit comments