Skip to content

Commit 4618fcc

Browse files
authored
DPL Analysis: cleanup unused code (AliceO2Group#13608)
1 parent 804f7a2 commit 4618fcc

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed

Framework/AnalysisSupport/src/DataInputDirector.cxx

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,6 @@
3535
#include <utility>
3636
#endif
3737

38-
std::vector<std::string> getColumnNames(o2::header::DataHeader dh)
39-
{
40-
auto description = std::string(dh.dataDescription.str);
41-
auto origin = std::string(dh.dataOrigin.str);
42-
43-
// default: column names = {}
44-
return {};
45-
}
46-
4738
namespace o2::framework
4839
{
4940
using namespace rapidjson;
@@ -395,20 +386,10 @@ bool DataInputDescriptor::readTree(DataAllocator& outputs, header::DataHeader dh
395386

396387
// add branches to read
397388
// fill the table
398-
auto colnames = getColumnNames(dh);
399389
t2t->setLabel(tree->GetName());
400-
if (colnames.size() == 0) {
401-
totalSizeCompressed += tree->GetZipBytes();
402-
totalSizeUncompressed += tree->GetTotBytes();
403-
t2t->addAllColumns(tree);
404-
} else {
405-
for (auto& colname : colnames) {
406-
TBranch* branch = tree->GetBranch(colname.c_str());
407-
totalSizeCompressed += branch->GetZipBytes("*");
408-
totalSizeUncompressed += branch->GetTotBytes("*");
409-
}
410-
t2t->addAllColumns(tree, std::move(colnames));
411-
}
390+
totalSizeCompressed += tree->GetZipBytes();
391+
totalSizeUncompressed += tree->GetTotBytes();
392+
t2t->addAllColumns(tree);
412393
t2t->fill(tree);
413394
delete tree;
414395

0 commit comments

Comments
 (0)