2222#include " FWCore/Framework/interface/ConsumesCollector.h"
2323#include " FWCore/Framework/interface/ESRecordsToProductResolverIndices.h"
2424#include " FWCore/Framework/interface/ComponentDescription.h"
25- #include " FWCore/Framework/interface/ModuleProcessName.h"
2625#include " FWCore/MessageLogger/interface/MessageLogger.h"
2726#include " FWCore/ServiceRegistry/interface/ModuleConsumesInfo.h"
2827#include " FWCore/ServiceRegistry/interface/ModuleConsumesESInfo.h"
@@ -452,19 +451,11 @@ namespace {
452451
453452void EDConsumerBase::modulesWhoseProductsAreConsumed (
454453 std::array<std::vector<ModuleDescription const *>*, NumBranchTypes>& modulesAll,
455- std::vector<ModuleProcessName>& modulesInPreviousProcesses,
456454 ProductRegistry const & preg,
457455 std::map<std::string, ModuleDescription const *> const & labelsToDesc,
458456 std::string const & processName) const {
459457 std::set<std::string> alreadyFound;
460458
461- auto modulesInPreviousProcessesEmplace = [&modulesInPreviousProcesses](std::string_view module ,
462- std::string_view process) {
463- auto it = std::lower_bound (
464- modulesInPreviousProcesses.begin (), modulesInPreviousProcesses.end (), ModuleProcessName (module , process));
465- modulesInPreviousProcesses.emplace (it, module , process);
466- };
467-
468459 auto itKind = m_tokenInfo.begin <kKind >();
469460 auto itLabels = m_tokenInfo.begin <kLabels >();
470461 for (auto itInfo = m_tokenInfo.begin <kLookupInfo >(), itEnd = m_tokenInfo.end <kLookupInfo >(); itInfo != itEnd;
@@ -491,9 +482,6 @@ void EDConsumerBase::modulesWhoseProductsAreConsumed(
491482 alreadyFound,
492483 labelsToDesc,
493484 preg);
494- } else {
495- // Product explicitly from different process than the current process, so must refer to an earlier process (unless it ends up "not found")
496- modulesInPreviousProcessesEmplace (consumedModuleLabel, consumedProcessName);
497485 }
498486 }
499487 } else { // process name was empty
@@ -508,23 +496,9 @@ void EDConsumerBase::modulesWhoseProductsAreConsumed(
508496 alreadyFound,
509497 labelsToDesc,
510498 preg);
511- } else {
512- // Product did not match to current process, so must refer to an earlier process (unless it ends up "not found")
513- // Recall that empty process name means "in the latest process" that can change event-by-event
514- modulesInPreviousProcessesEmplace (consumedModuleLabel, matches.processName (j));
515499 }
516500 }
517501 }
518- } else {
519- // The skipCurrentProcess means the same as empty process name,
520- // except the current process is skipped. Therefore need to do
521- // the same matching as above.
522- auto matches = helper.relatedIndexes (*itKind, itInfo->m_type , consumedModuleLabel, consumedProductInstance);
523- for (unsigned int j = 0 ; j < matches.numberOfMatches (); ++j) {
524- if (processName != matches.processName (j)) {
525- modulesInPreviousProcessesEmplace (matches.moduleLabel (j), matches.processName (j));
526- }
527- }
528502 }
529503 }
530504}
0 commit comments