@@ -207,11 +207,6 @@ bool shouldPreserveRawChannels(const DeviceSpec& spec)
207207 return std::find (spec.labels .begin (), spec.labels .end (), ecs::preserveRawChannelsLabel) != spec.labels .end ();
208208}
209209
210- bool isQcReconfigurable (const DeviceSpec& spec)
211- {
212- return std::find (spec.labels .begin (), spec.labels .end (), ecs::qcReconfigurable) != spec.labels .end ();
213- }
214-
215210bool isCritical (const DeviceSpec& spec)
216211{
217212 // DPL's expendable Data Processor corresponds to a non-critical task in ECS
@@ -220,27 +215,6 @@ bool isCritical(const DeviceSpec& spec)
220215 return std::find (spec.labels .begin (), spec.labels .end (), DataProcessorLabel{" expendable" }) == spec.labels .end ();
221216}
222217
223- void dumpProperties (std::ostream& dumpOut, const DeviceExecution& execution, const DeviceSpec& spec, const std::string& indLevel)
224- {
225- // get the argument `--config`
226- std::string configPath;
227- auto it = std::find_if (execution.args .begin (), execution.args .end (), [](char * v) { return v != nullptr && strcmp (v, " --config" ) == 0 ; });
228-
229- // get the next argument and find `/o2/components/` in it, then take what comes after in the string.
230- if (it != execution.args .end ()) {
231- std::string configParam = *(++it);
232- std::string prefix = " /o2/components/" ; // keep only the path to the config file, i.e. stuff after "/o2/components/"
233- size_t pos = configParam.find (prefix);
234- if (pos != std::string::npos) {
235- configPath = configParam.substr (pos + prefix.length ());
236- }
237- }
238-
239- dumpOut << indLevel << " properties:\n " ;
240- std::string qcConfigFullCommand = configPath.empty () ? " \"\" " : " \" {{ ToPtree(config.Get('" + configPath + " '), 'json') }}\" " ;
241- dumpOut << indLevel << indScheme << " qcConfiguration: " << qcConfigFullCommand << " \n " ;
242- }
243-
244218void dumpCommand (std::ostream& dumpOut, const DeviceExecution& execution, std::string indLevel)
245219{
246220 dumpOut << indLevel << " shell: true\n " ;
@@ -461,10 +435,6 @@ void dumpTask(std::ostream& dumpOut, const DeviceSpec& spec, const DeviceExecuti
461435 }
462436 }
463437
464- if (implementation::isQcReconfigurable (spec)) {
465- implementation::dumpProperties (dumpOut, execution, spec, indLevel);
466- }
467-
468438 dumpOut << indLevel << " command:\n " ;
469439 implementation::dumpCommand (dumpOut, execution, indLevel + indScheme);
470440}
0 commit comments