From 2afbeab2aa2316d3e4332362d7f74f8355870ea0 Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Sat, 21 Dec 2024 00:00:00 +0000 Subject: [PATCH] fix(video2x): remove redundant newline statements Signed-off-by: k4yt3x --- tools/video2x/src/video2x.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tools/video2x/src/video2x.cpp b/tools/video2x/src/video2x.cpp index 06cd56a..f5b8e0c 100644 --- a/tools/video2x/src/video2x.cpp +++ b/tools/video2x/src/video2x.cpp @@ -146,11 +146,7 @@ int main(int argc, char **argv) { } } else if (ch == 'q' || ch == 'Q') { // Abort processing - if (logger_sink->get_needs_newline()) { - putchar('\n'); - } video2x::logger()->warn("Aborting gracefully; press Ctrl+C to terminate forcefully."); - logger_sink->set_needs_newline(false); video_processor.abort(); break; } @@ -210,12 +206,6 @@ int main(int argc, char **argv) { // Join the processing thread to ensure it completes before exiting processing_thread.join(); - // Print a newline if progress bar was displayed - if (logger_sink->get_needs_newline()) { - logger_sink->set_needs_newline(false); - std::cout << '\n'; - } - // Print final message based on processing result if (video_processor.get_state() == video2x::VideoProcessorState::Aborted) { video2x::logger()->warn("Video processing aborted");