From d6e5c347249ec4084d79a5c57c81e2d21af0fc1a Mon Sep 17 00:00:00 2001
From: ctraizet <cedric.traizet@c-s.fr>
Date: Tue, 12 Mar 2019 17:01:06 +0100
Subject: [PATCH] ENH: removed unused member CoutIsConsole

---
 .../Common/include/otbStandardOneLineFilterWatcher.h     | 2 --
 .../Common/include/otbStandardOneLineFilterWatcher.hxx   | 9 +++------
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/Modules/Core/Common/include/otbStandardOneLineFilterWatcher.h b/Modules/Core/Common/include/otbStandardOneLineFilterWatcher.h
index eed2eae913..d3ca043d56 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 db25082dce..56489471fc 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();
-- 
GitLab