preproc: fix warnings
@@ -698,9 +698,6 @@ enum Defcond {
#[cfg(test)]
mod tests {
use super::*;
- use crate::cat::CatTokenKind;
- use crate::cat::CatTokenKind::*;
- use moore_common::source::*;
fn preproc(input: &str) -> Preprocessor {
use std::cell::Cell;
@@ -715,12 +712,6 @@ mod tests {
Preprocessor::new(source, &[])
}
- fn check(input: &str, expected: &[CatTokenKind]) {
- let pp = preproc(input);
- let actual: Vec<_> = pp.map(|x| x.unwrap().0).collect();
- assert_eq!(actual, expected);
- }
-
fn check_str(input: &str, expected: &str) {
let pp = preproc(input);
let actual: String = pp.map(|x| x.unwrap().1.extract()).collect();
