Remove unused function

This commit is contained in:
Kogia-sima 2020-06-08 22:34:59 +09:00
parent 7848f34e37
commit c86effe90f
2 changed files with 1 additions and 5 deletions

View File

@ -122,10 +122,6 @@ impl<'a> ParseStream<'a> {
Ok(vec)
}
pub fn to_vec(&self) -> Result<Vec<Token<'a>>, Error> {
self.clone().into_vec()
}
fn error(&self, msg: &str) -> Error {
let offset = self.original_source.len() - self.source.len();
make_error!(

View File

@ -217,7 +217,7 @@ mod tests {
source: String::with_capacity(token_iter.original_source.len()),
source_map: SourceMap::default(),
};
ps.feed_tokens(&token_iter.clone().to_vec().unwrap());
ps.feed_tokens(&token_iter.clone().into_vec().unwrap());
eprintln!("{}", ps.source);
Translator::new().translate(token_iter).unwrap();
}