Commit 2d495874 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Remove unused public interface methods from GaudiCommon

See merge request gaudi/Gaudi!1140
parents bc4077cb b1bdda3f
Pipeline #2672978 passed with stages
in 39 minutes and 57 seconds
......@@ -507,14 +507,6 @@ public:
return p->second;
}
// ==========================================================================
public:
/// Insert the actual C++ type of the algorithm/tool in the messages ?
bool typePrint() const { return m_typePrint; }
/// Print properties at initialization ?
bool propsPrint() const { return m_propsPrint; }
/// Print error counters at finalization ?
bool errorsPrint() const { return m_errorsPrint; }
// ==========================================================================
public:
/** perform the actual printout of error counters
* @param level The message level to print at
......@@ -725,7 +717,7 @@ private:
[this]( auto& ) {
// no action if not yet initialized
if ( this->FSMState() >= Gaudi::StateMachine::INITIALIZED &&
this->errorsPrint() ) {
this->m_errorsPrint.value() ) {
this->printErrors();
}
},
......@@ -734,7 +726,7 @@ private:
[this]( auto& ) {
// no action if not yet initialized
if ( this->FSMState() >= Gaudi::StateMachine::INITIALIZED &&
this->propsPrint() ) {
this->m_propsPrint.value() ) {
this->printProps( MSG::ALWAYS );
}
},
......
......@@ -95,7 +95,7 @@ StatusCode GaudiCommon<PBASE>::initialize() {
}
// properties will be printed if asked for or in "MSG::DEBUG" mode
if ( propsPrint() ) {
if ( m_propsPrint.value() ) {
printProps( MSG::ALWAYS );
} else if ( this->msgLevel( MSG::DEBUG ) ) {
printProps( MSG::DEBUG );
......@@ -153,7 +153,7 @@ StatusCode GaudiCommon<PBASE>::finalize() {
if ( !m_errors.empty() || !m_warnings.empty() || !m_exceptions.empty() ) {
this->always() << "Exceptions/Errors/Warnings/Infos Statistics : " << m_exceptions.size() << "/" << m_errors.size()
<< "/" << m_warnings.size() << "/" << m_infos.size() << endmsg;
if ( errorsPrint() ) { printErrors(); }
if ( m_errorsPrint.value() ) { printErrors(); }
}
// clear *ALL* counters explicitly
......@@ -321,7 +321,7 @@ StatusCode GaudiCommon<PBASE>::Print( std::string_view msg, const StatusCode st,
// use the predefined stream
MsgStream& str = this->msgStream( lvl );
if ( typePrint() ) { str << System::typeinfoName( typeid( *this ) ) << ":: "; }
if ( m_typePrint.value() ) { str << System::typeinfoName( typeid( *this ) ) << ":: "; }
// print the message
str << msg;
......
......@@ -73,7 +73,6 @@ namespace Gaudi {
// execute it!
// ============================================================================
StatusCode Gaudi::Examples::ArrayProperties::execute() {
propsPrint();
//
info() << " Doubles : " << Gaudi::Utils::toString( m_doubles ) << endmsg;
info() << " Strings : " << Gaudi::Utils::toString( m_strings ) << endmsg;
......
......@@ -62,7 +62,6 @@ namespace Gaudi {
// execute it!
// ============================================================================
StatusCode Gaudi::Examples::BoostArrayProperties::execute() {
propsPrint();
//
info() << " Doubles : " << Gaudi::Utils::toString( m_doubles ) << endmsg;
info() << " Strings : " << Gaudi::Utils::toString( m_strings ) << endmsg;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment