1
Fork 0

Remove unused code from rustc_ast

This commit is contained in:
est31 2020-10-09 11:20:56 +02:00
parent d7791f485b
commit 49d4a756f1
5 changed files with 0 additions and 64 deletions

View file

@ -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.