Remove unused code from rustc_ast
This commit is contained in:
parent
d7791f485b
commit
49d4a756f1
5 changed files with 0 additions and 64 deletions
|
@ -295,12 +295,6 @@ impl TokenStream {
|
|||
.collect(),
|
||||
))
|
||||
}
|
||||
|
||||
pub fn map<F: FnMut(TokenTree) -> TokenTree>(self, mut f: F) -> TokenStream {
|
||||
TokenStream(Lrc::new(
|
||||
self.0.iter().map(|(tree, is_joint)| (f(tree.clone()), *is_joint)).collect(),
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
// 99.5%+ of the time we have 1 or 2 elements in this vector.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue