From 306a58a73147cd35491a3bd9facb6e0ee057752e Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Tue, 29 Nov 2022 10:20:04 +0100 Subject: [PATCH] tail: remove unused var "_event_counter" --- src/uu/tail/src/follow/watch.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/uu/tail/src/follow/watch.rs b/src/uu/tail/src/follow/watch.rs index 3ecb47f67..cd1dd49c3 100644 --- a/src/uu/tail/src/follow/watch.rs +++ b/src/uu/tail/src/follow/watch.rs @@ -479,7 +479,6 @@ pub fn follow(mut observer: Observer, settings: &Settings) -> UResult<()> { let mut process = platform::ProcessChecker::new(observer.pid); - let mut _event_counter = 0; let mut _timeout_counter = 0; // main follow loop @@ -529,7 +528,6 @@ pub fn follow(mut observer: Observer, settings: &Settings) -> UResult<()> { .receiver .recv_timeout(settings.sleep_sec); if rx_result.is_ok() { - _event_counter += 1; _timeout_counter = 0; }