From d70d3ee09cec9e430b9ab956aadf0a3a383f462a Mon Sep 17 00:00:00 2001
From: Christoph Hasse <christoph.hasse@cern.ch>
Date: Tue, 28 Sep 2021 14:22:58 +0200
Subject: [PATCH] fix: do not automatically enable timing in dbg builds

---
 Phys/DaVinciTransporter/src/ParticleTransporter.cpp |  9 +--------
 .../src/ParticleTransporterWithStateProvider.cpp    |  4 ----
 Phys/LoKiFitters/src/MessagingBase.cpp              | 13 +------------
 3 files changed, 2 insertions(+), 24 deletions(-)

diff --git a/Phys/DaVinciTransporter/src/ParticleTransporter.cpp b/Phys/DaVinciTransporter/src/ParticleTransporter.cpp
index 4ef8cde85..15b9786bf 100644
--- a/Phys/DaVinciTransporter/src/ParticleTransporter.cpp
+++ b/Phys/DaVinciTransporter/src/ParticleTransporter.cpp
@@ -38,14 +38,7 @@ ParticleTransporter::ParticleTransporter( const std::string& type, const std::st
     , m_ppSvc( NULL )
     , m_particle2State( NULL )
     , m_eID( 0 )
-//
-#ifndef NDEBUG
-    , m_timing( true )
-#else
-    , m_timing( false )
-#endif
-//
-{
+    , m_timing( false ) {
   //
   if ( std::string::npos != name.find( "Master" ) ) {
     m_trackExtrapolatorName = "TrackMasterExtrapolator:PUBLIC";
diff --git a/Phys/DaVinciTransporter/src/ParticleTransporterWithStateProvider.cpp b/Phys/DaVinciTransporter/src/ParticleTransporterWithStateProvider.cpp
index 49ded5b57..ae0e66af8 100644
--- a/Phys/DaVinciTransporter/src/ParticleTransporterWithStateProvider.cpp
+++ b/Phys/DaVinciTransporter/src/ParticleTransporterWithStateProvider.cpp
@@ -127,11 +127,7 @@ DaVinci::ParticleTransporter::ParticleTransporter( const std::string& type, // t
     , m_extrapolator2name( "TrackRungeKuttaExtrapolator:PUBLIC" )
     , m_region( -1000 * Gaudi::Units::cm, 1000 * Gaudi::Units::cm )
     , m_interpolateOnlyLongTracks( false )
-#ifndef NDEBUG
-    , m_timing( true )
-#else
     , m_timing( false )
-#endif
     , m_stateprovider( 0 )
     , m_particle2state( 0 )
     , m_extrapolator1( 0 )
diff --git a/Phys/LoKiFitters/src/MessagingBase.cpp b/Phys/LoKiFitters/src/MessagingBase.cpp
index 5f55f1a28..e3bd94080 100644
--- a/Phys/LoKiFitters/src/MessagingBase.cpp
+++ b/Phys/LoKiFitters/src/MessagingBase.cpp
@@ -32,18 +32,7 @@
 // Standard constructor, initializes variables
 // ============================================================================
 LoKi::MessagingBase::MessagingBase( const std::string& type, const std::string& name, const IInterface* parent )
-    : GaudiTool( type, name, parent )
-    , m_myAlg()
-    , m_printMyAlg( false )
-    , m_prints( 2 )
-//
-#ifndef NDEBUG
-    , m_timing( true )
-#else
-    , m_timing( false )
-#endif
-//
-{
+    : GaudiTool( type, name, parent ), m_myAlg(), m_printMyAlg( false ), m_prints( 2 ), m_timing( false ) {
   //
   declareProperty( "PrintMyAlg", m_printMyAlg, "Print the name of ``associated'' algorithm" );
   declareProperty( "MaxPrints", m_prints, "Maximum number of prints" );
-- 
GitLab