Skip to content

Commit efb9f6f

Browse files
committed
Removed inaccurate printout
The printout would happen if a SwitchProducer was being used in a path, thereby giving an incorrect impression of a problem.
1 parent 8e38467 commit efb9f6f

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

FWCore/Framework/src/ScheduleBuilder.cc

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -699,31 +699,6 @@ namespace edm {
699699
});
700700
}
701701
}
702-
703-
// Print conditional modules that were not consumed in any of their associated Paths
704-
if (not conditionalModules.empty()) {
705-
// Intersection of unscheduled and ConditionalTask modules gives
706-
// directly the set of conditional modules that were not
707-
// consumed by anything in the Paths associated to the
708-
// corresponding ConditionalTask.
709-
std::vector<std::string_view> labelsToPrint;
710-
std::copy_if(
711-
unscheduledLabels.begin(),
712-
unscheduledLabels.end(),
713-
std::back_inserter(labelsToPrint),
714-
[&conditionalModules](auto const& lab) { return conditionalModules.find(lab) != conditionalModules.end(); });
715-
716-
if (not labelsToPrint.empty()) {
717-
edm::LogWarning log("NonConsumedConditionalModules");
718-
log << "The following modules were part of some ConditionalTask, but were not\n"
719-
<< "consumed by any other module in any of the Paths to which the ConditionalTask\n"
720-
<< "was associated. Perhaps they should be either removed from the\n"
721-
<< "job, or moved to a Task to make it explicit they are unscheduled.\n";
722-
for (auto const& modLabel : labelsToPrint) {
723-
log.format("\n {}", modLabel);
724-
}
725-
}
726-
}
727702
//we want the unscheduled modules at the beginning of the allNeededModules list
728703
allNeededModules_.insert(allNeededModules_.begin(), unscheduledModules_.begin(), unscheduledModules_.end());
729704
}

0 commit comments

Comments
 (0)