From 257d10fc6c989b2ceb2e0c47f9520932eac90ddf Mon Sep 17 00:00:00 2001
From: Manuel Grizonnet <manuel.grizonnet@orfeo-toolbox.org>
Date: Fri, 27 Feb 2015 16:09:37 +0100
Subject: [PATCH] ENH: remove deprecated constructor not used anymore

---
 .../CommandLine/include/otbWrapperCommandLineLauncher.h   | 8 +-------
 .../CommandLine/src/otbWrapperCommandLineLauncher.cxx     | 6 ------
 2 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/Modules/Wrappers/CommandLine/include/otbWrapperCommandLineLauncher.h b/Modules/Wrappers/CommandLine/include/otbWrapperCommandLineLauncher.h
index 5bcf47e04c..26203558e1 100644
--- a/Modules/Wrappers/CommandLine/include/otbWrapperCommandLineLauncher.h
+++ b/Modules/Wrappers/CommandLine/include/otbWrapperCommandLineLauncher.h
@@ -82,14 +82,8 @@ public:
    * - Load the application using the ApplicationRegistry
    */
   bool Load();
-
-  /** \deprecated
-   * Load with exp argument is deprecated because class
-   * CommandLineLauncher does not have expression attribute anymore. Use instead the
-   * default constructor. It is included for backwards compatibility. */
-  bool Load( const std::string & exp );
   
-    /** same as Load method but set the expression before. */
+  /** same as Load method but set the expression before. */
   bool Load(const std::vector<std::string> &vexp);
 
   /** Launch the process, using the Execute application method
diff --git a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx
index 848664fa36..4b73e713dc 100644
--- a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx
+++ b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineLauncher.cxx
@@ -86,12 +86,6 @@ void CommandLineLauncher::DeleteWatcherList()
   m_WatcherList.clear();
 }
 
-bool CommandLineLauncher::Load(const std::string &)
-{
-  /*m_Expression = exp;
-  return this->Load(); */
-  return false;
-}
 
 bool CommandLineLauncher::Load(const std::vector<std::string> &vexp)
 {
-- 
GitLab