Skip to content

Commit cd2008f

Browse files
committed
DPL: drop commented code
1 parent 9ff2f3b commit cd2008f

9 files changed

+0
-23
lines changed

Framework/Core/test/benchmark_ExternalFairMQDeviceProxies.cxx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -450,14 +450,8 @@ std::vector<DataProcessorSpec> defineDataProcessing(ConfigContext const& config)
450450
Inputs checkerInputs;
451451
if (bypassProxies != ProxyBypass::None) {
452452
checkerInputs.emplace_back(InputSpec{"datain", ConcreteDataTypeMatcher{"TST", "DATA"}, Lifetime::Timeframe});
453-
//for (unsigned int i = 0; i < pState->nChannels; i++) {
454-
// checkerInputs.emplace_back(InputSpec{{"datain"}, "TST", "DATA", i, Lifetime::Timeframe});
455-
//}
456453
} else {
457454
checkerInputs.emplace_back(InputSpec{"datain", ConcreteDataTypeMatcher{"PRX", "DATA"}, Lifetime::Timeframe});
458-
//for (unsigned int i = 0; i < pState->nChannels; i++) {
459-
// checkerInputs.emplace_back(InputSpec{{"datain"}, "PRX", "DATA", i, Lifetime::Timeframe});
460-
//}
461455
}
462456
workflow.emplace_back(DataProcessorSpec{"checker",
463457
std::move(checkerInputs),

Framework/Core/test/test_DataAllocator.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ DataProcessorSpec getSinkSpec()
338338

339339
LOG(info) << "extracting POD vector";
340340
// TODO: use the ReturnType helper once implemented
341-
//InputRecord::ReturnType<std::vector<int>> podvector;
342341
decltype(std::declval<InputRecord>().get<std::vector<int>>(DataRef{nullptr, nullptr, nullptr})) podvector;
343342
podvector = pc.inputs().get<std::vector<int>>("inputPODvector");
344343
ASSERT_ERROR(podvector.size() == 3);

Framework/Core/test/test_DataDescriptorMatcherWorkflow.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "Framework/DataAllocator.h"
2222

2323
// we need to add workflow options before including Framework/runDataProcessing
24-
//void customize(std::vector<ConfigParamSpec>& workflowOptions)
2524
//{
2625
//}
2726

Framework/Core/test/test_DataOutputDirector.cxx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ TEST_CASE("TestDataOutputDirector")
2929
std::string keepString("AOD/UNO/0:tr1:c1/c2/c3:fn1,AOD/UNO/0::c4");
3030
dod.readString(keepString);
3131
dod.setFilenameBase(mydfn);
32-
//dod.printOut(); printf("\n\n");
3332

3433
auto ds = dod.getDataOutputDescriptors(dh);
3534

@@ -59,7 +58,6 @@ TEST_CASE("TestDataOutputDirector")
5958

6059
dod.reset();
6160
std::tie(rdn, dfn, fmode, mfs, ntf) = dod.readJsonString(jsonString);
62-
//dod.printOut(); printf("\n\n");
6361
ds = dod.getDataOutputDescriptors(dh);
6462

6563
REQUIRE(ds.size() == 1);
@@ -106,7 +104,6 @@ TEST_CASE("TestDataOutputDirector")
106104
dod.reset();
107105
std::tie(rdn, dfn, fmode, mfs, ntf) = dod.readJson(jsonFile);
108106
dod.setFilenameBase("AnalysisResults");
109-
//dod.printOut(); printf("\n\n");
110107
ds = dod.getDataOutputDescriptors(dh);
111108

112109
REQUIRE(ds.size() == 2);

Framework/Core/test/test_Parallel.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
#include <boost/algorithm/string.hpp>
2121

22-
2322
using namespace o2::framework;
2423

2524
struct FakeCluster {

Framework/Core/test/test_ParallelPipeline.cxx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ std::vector<DataProcessorSpec> defineDataProcessing(ConfigContext const&)
6363
LOG(debug) << "instance " << parallelContext.index1D() << " of " << parallelContext.index1DSize() << ": "
6464
<< *input.spec << ": " << *((int*)input.payload);
6565
auto const* dataheader = DataRefUtils::getHeader<o2::header::DataHeader*>(input);
66-
//auto& data = ctx.outputs().make<int>(OutputRef{"output", dataheader->subSpecification});
6766
auto& data = ctx.outputs().make<int>(Output{"TST", "PREPROC", dataheader->subSpecification});
6867
ASSERT_ERROR(ctx.inputs().get<int>(input.spec->binding.c_str()) == parallelContext.index1D());
6968
data = parallelContext.index1D();
@@ -84,10 +83,8 @@ std::vector<DataProcessorSpec> defineDataProcessing(ConfigContext const&)
8483
auto const* dataheader = DataRefUtils::getHeader<o2::header::DataHeader*>(input);
8584
// TODO: there is a bug in the API for using OutputRef, returns an rvalue which can not be bound to
8685
// lvalue reference
87-
//auto& data = ctx.outputs().make<int>(OutputRef{"output", dataheader->subSpecification});
8886
auto& data = ctx.outputs().make<int>(Output{"TST", "DATA", dataheader->subSpecification});
8987
data = ctx.inputs().get<int>(input.spec->binding.c_str());
90-
//auto& meta = ctx.outputs().make<int>(OutputRef{"metadt", dataheader->subSpecification});
9188
auto& meta = ctx.outputs().make<int>(Output{"TST", "META", dataheader->subSpecification});
9289
meta = dataheader->subSpecification;
9390
}

Framework/Core/test/test_Root2ArrowTable.cxx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ TEST_CASE("RootTree2Table")
4747
t1.Branch("ij", ij, "ij[2]/I");
4848
//fill the tree
4949
for (Int_t i = 0; i < 1000; i++) {
50-
//gRandom->Rannor(xyz[0], xyz[1]);
5150
xyz[0] = 1;
5251
xyz[1] = 2;
5352
xyz[2] = 3;
@@ -92,16 +91,12 @@ TEST_CASE("RootTree2Table")
9291
REQUIRE(array->length() == 3000);
9392
const float* c = reinterpret_cast<float const*>(array->values()->data());
9493

95-
//auto array = std::static_pointer_cast<arrow::FixedSizeBinaryArray>(table->column(0)->chunk(0));
96-
//CHECK_EQUAL(array->byte_width(), sizeof(float[3]));
97-
//const float* c = reinterpret_cast<float const*>(array->Value(0));
9894

9995
CHECK(c[0] == 1);
10096
CHECK(c[1] == 2);
10197
CHECK(c[2] == 1);
10298
}
10399
{
104-
//auto values = std::static_pointer_cast<arrow::FixedSizeBinaryArray>(table->column(1)->chunk(0));
105100
auto chunkToUse = table->column(1)->chunk(0);
106101
chunkToUse = std::dynamic_pointer_cast<arrow::FixedSizeListArray>(chunkToUse)->values();
107102
auto array = std::static_pointer_cast<arrow::Int32Array>(chunkToUse);

Framework/Core/test/test_StaticFor.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ TEST_CASE("TestStaticFor")
5757
constexpr int index = i.value;
5858

5959
// compiler will complain if constexpr is not enforced for index access:
60-
//CONST_STR(staticNames[index]); // works
61-
//CONST_STR(staticNames[i.value]); // fails
6260

6361
constexpr auto sayHello = CONST_STR("Hello ") + CONST_STR(staticNames[index]);
6462

Framework/Core/test/test_VariablePayloadSequenceWorkflow.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ std::vector<DataProcessorSpec> defineDataProcessing(ConfigContext const& config)
217217
ASSERT_ERROR(*reinterpret_cast<size_t const*>(ref.payload) == sd->initialValue + nSequencePayloads);
218218
++nSequencePayloads;
219219
}
220-
//LOG(info) << "input " << ref.spec->binding << " has data {" << dh->dataOrigin.as<std::string>() << "/" << dh->dataDescription.as<std::string>() << "/" << dh->subSpecification << "}: " << *reinterpret_cast<size_t const*>(ref.payload);
221220
}
222221
for (auto const& [channel, count] : active) {
223222
++counters[channel];

0 commit comments

Comments
 (0)