File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -76,19 +76,6 @@ impl<S: Span> Subtree<S> {
76
76
pub const fn empty ( span : DelimSpan < S > ) -> Self {
77
77
Subtree { delimiter : Delimiter :: invisible_delim_spanned ( span) , token_trees : vec ! [ ] }
78
78
}
79
-
80
- pub fn visit_ids ( & mut self , f : & mut impl FnMut ( S ) -> S ) {
81
- self . delimiter . open = f ( self . delimiter . open ) ;
82
- self . delimiter . close = f ( self . delimiter . close ) ;
83
- self . token_trees . iter_mut ( ) . for_each ( |tt| match tt {
84
- crate :: TokenTree :: Leaf ( leaf) => match leaf {
85
- crate :: Leaf :: Literal ( it) => it. span = f ( it. span ) ,
86
- crate :: Leaf :: Punct ( it) => it. span = f ( it. span ) ,
87
- crate :: Leaf :: Ident ( it) => it. span = f ( it. span ) ,
88
- } ,
89
- crate :: TokenTree :: Subtree ( s) => s. visit_ids ( f) ,
90
- } )
91
- }
92
79
}
93
80
94
81
#[ derive( Debug , Copy , Clone , PartialEq ) ]
You can’t perform that action at this time.
0 commit comments