removed filters helpers

This commit is contained in:
epi
2021-01-16 09:46:39 -06:00
parent 9a9ab99914
commit 96b9152c3a
2 changed files with 0 additions and 37 deletions

View File

@@ -1,36 +0,0 @@
// use super::WildcardFilter;
// use crate::{
// statistics::{
// StatCommand::{self, UpdateUsizeField},
// StatField::WildcardsFiltered,
// },
// FeroxResponse,
// };
// use anyhow::Result;
// use tokio::sync::mpsc::UnboundedSender;
//
// /// Simple helper to stay DRY; determines whether or not a given `FeroxResponse` should be reported
// /// to the user or not.
// pub fn should_filter_response(
// response: &FeroxResponse,
// tx_stats: UnboundedSender<StatCommand>,
// ) -> Result<bool> {
// let filters = FILTERS
// match FILTERS.read() {
// Ok(filters) => {
// for filter in filters.iter() {
// // wildcard.should_filter goes here
// if filter.should_filter_response(&response) {
// if filter.as_any().downcast_ref::<WildcardFilter>().is_some() {
// update_stat!(tx_stats, UpdateUsizeField(WildcardsFiltered, 1))
// }
// return true;
// }
// }
// }
// Err(e) => {
// log::error!("{}", e);
// }
// }
// false
// }

View File

@@ -8,7 +8,6 @@ mod regex;
mod similarity;
#[cfg(test)]
mod tests;
mod helpers;
pub use self::lines::LinesFilter;
pub use self::regex::RegexFilter;