diff --git a/Trigger/TrigSteer/TrigCompositeUtils/TrigCompositeUtils/TrigCompositeUtils.icc b/Trigger/TrigSteer/TrigCompositeUtils/TrigCompositeUtils/TrigCompositeUtils.icc index 929eacbce78fffce59c87ddd4e9aca4ed33f445d..e876477789ff92f3805700b8b10f4ce91949e590 100644 --- a/Trigger/TrigSteer/TrigCompositeUtils/TrigCompositeUtils/TrigCompositeUtils.icc +++ b/Trigger/TrigSteer/TrigCompositeUtils/TrigCompositeUtils/TrigCompositeUtils.icc @@ -140,26 +140,10 @@ namespace TrigCompositeUtils { return; } auto it = std::remove_if(vector.begin(), vector.end(), [&](const ElementLink<CONTAINER>& el) { - /// handle explicit case of an empty string if ( containerSGKey=="" ) return false; - - bool newmatch = !std::regex_match( el.dataID(), std::regex(containerSGKey) ); - - if ( containerSGKey.find("*")==std::string::npos && - containerSGKey.find(".")==std::string::npos ) { - - bool oldmatch = ( el.dataID().find(containerSGKey) == std::string::npos); - - // ANA_MSG_WARNING ( "Strict match violation" << el.dataID() << " : " << containerSGKey ); - if ( oldmatch!=newmatch ) { - std::cerr << "SUTT:: Strict match violation " << el.dataID() << " : " << containerSGKey << std::endl;; - } - - } - + /// handle everything else return !std::regex_match( el.dataID(), std::regex(containerSGKey) ); - }); // Collection has been re-ordered to put the bad elements at the end vector.erase(it, vector.end());