diff --git a/Modules/Core/Common/src/otbConfigurationManager.cxx b/Modules/Core/Common/src/otbConfigurationManager.cxx
index 48108116bf6a1cd40c661b4e2050eea8ecdf3a3b..6e4819539d8ef74f1b34c1b9cf51c9fd23c62636 100644
--- a/Modules/Core/Common/src/otbConfigurationManager.cxx
+++ b/Modules/Core/Common/src/otbConfigurationManager.cxx
@@ -65,15 +65,6 @@ ConfigurationManager::RAMValueType ConfigurationManager::GetMaxRAMHint()
   return value;
 }
 
-
-#define level_macro(x) \
-  {                                                                     \
-    std::string target = #x;                                            \
-    if(std::equal(svalue.begin(),svalue.end(),target.begin(),target.end())) \
-      level = itk::LoggerBase::x;                                       \
-  }                                                                     \
-
-
 itk::LoggerBase::PriorityLevelType ConfigurationManager::GetLoggerLevel()
 {
   std::string svalue;