diff --git a/Modules/Core/Common/include/otbStandardOneLineFilterWatcher.h b/Modules/Core/Common/include/otbStandardOneLineFilterWatcher.h index eed2eae913ee482275edbecc404b3b542eab84b1..d3ca043d5629fa6cbadfd2b7bc8e961d7c83470a 100644 --- a/Modules/Core/Common/include/otbStandardOneLineFilterWatcher.h +++ b/Modules/Core/Common/include/otbStandardOneLineFilterWatcher.h @@ -107,8 +107,6 @@ private: * progress if it hasn't changed */ int m_CurrentNbStars; - bool m_CoutIsConsole; - /** If the output is not interactive (e.g. it is redirected to a file), it * is buffered and only written at the end of the processing */ std::string m_Buffer; diff --git a/Modules/Core/Common/include/otbStandardOneLineFilterWatcher.hxx b/Modules/Core/Common/include/otbStandardOneLineFilterWatcher.hxx index db25082dceeb7ac5950bba520ca9c87a70c5e171..56489471fc73fa0c5f7246909051c9d04cede370 100644 --- a/Modules/Core/Common/include/otbStandardOneLineFilterWatcher.hxx +++ b/Modules/Core/Common/include/otbStandardOneLineFilterWatcher.hxx @@ -35,8 +35,7 @@ template<class PrintCallbackType> StandardOneLineFilterWatcher<PrintCallbackType> ::StandardOneLineFilterWatcher() : m_StarsCount(50), - m_CurrentNbStars(-1), - m_CoutIsConsole( System::IsInteractive(1) ) + m_CurrentNbStars(-1) { m_DefaultCallback = std::make_shared<PrintCallbackType>() ; m_Callback = m_DefaultCallback.get(); @@ -48,8 +47,7 @@ StandardOneLineFilterWatcher<PrintCallbackType> const char *comment) : FilterWatcherBase(process, comment), m_StarsCount(50), - m_CurrentNbStars(-1), - m_CoutIsConsole( System::IsInteractive(1) ) + m_CurrentNbStars(-1) { m_DefaultCallback = std::make_shared<PrintCallbackType>() ; m_Callback = m_DefaultCallback.get(); @@ -61,8 +59,7 @@ StandardOneLineFilterWatcher<PrintCallbackType> const std::string& comment) : FilterWatcherBase(process, comment.c_str()), m_StarsCount(50), - m_CurrentNbStars(-1), - m_CoutIsConsole( System::IsInteractive(1) ) + m_CurrentNbStars(-1) { m_DefaultCallback = std::make_shared<PrintCallbackType>() ; m_Callback = m_DefaultCallback.get();