From 9e3587e5cc1a5e1d07641bfdc8192f0d04d1a6a1 Mon Sep 17 00:00:00 2001 From: DustInDark Date: Mon, 20 Dec 2021 11:36:34 +0900 Subject: [PATCH] removed unused Counter struct #301 --- src/detections/print.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/detections/print.rs b/src/detections/print.rs index 1df51e2d..810f61ba 100644 --- a/src/detections/print.rs +++ b/src/detections/print.rs @@ -50,22 +50,6 @@ lazy_static! { .is_present("quiet-errors"); } -#[derive(Copy, Clone)] -/// エラーログに出力したエラー回数を保持した構造体 -pub struct Counter { - pub count: u128, -} - -impl Counter { - pub fn new() -> Self { - Counter { count: 0 } - } - /// エラーログに出力したエラー回数を1増やす - pub fn countup(mut self) { - self.count += 1; - } -} - impl Message { pub fn new() -> Self { let messages: BTreeMap, Vec> = BTreeMap::new();