Skip to content

Commit 2bcfee0

Browse files
committed
[tree] Remove dead code in TChain::Loop
1 parent a1c112f commit 2bcfee0

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

tree/tree/src/TChain.cxx

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,45 +1807,9 @@ void TChain::Lookup(bool force)
18071807
////////////////////////////////////////////////////////////////////////////////
18081808
/// Loop on nentries of this chain starting at firstentry. (NOT IMPLEMENTED)
18091809

1810-
void TChain::Loop(Option_t* option, Long64_t nentries, Long64_t firstentry)
1810+
void TChain::Loop(Option_t *, Long64_t, Long64_t)
18111811
{
18121812
Error("Loop", "Function not yet implemented");
1813-
1814-
if (option || nentries || firstentry) { } // keep warnings away
1815-
1816-
#if 0
1817-
if (LoadTree(firstentry) < 0) return;
1818-
1819-
if (firstentry < 0) firstentry = 0;
1820-
Long64_t lastentry = firstentry + nentries -1;
1821-
if (lastentry > fEntries-1) {
1822-
lastentry = fEntries -1;
1823-
}
1824-
1825-
GetPlayer();
1826-
GetSelector();
1827-
fSelector->Start(option);
1828-
1829-
Long64_t entry = firstentry;
1830-
Int_t tree,e0,en;
1831-
for (tree=0;tree<fNtrees;tree++) {
1832-
e0 = fTreeOffset[tree];
1833-
en = fTreeOffset[tree+1] - 1;
1834-
if (en > lastentry) en = lastentry;
1835-
if (entry > en) continue;
1836-
1837-
LoadTree(entry);
1838-
fSelector->BeginFile();
1839-
1840-
while (entry <= en) {
1841-
fSelector->Execute(fTree, entry - e0);
1842-
entry++;
1843-
}
1844-
fSelector->EndFile();
1845-
}
1846-
1847-
fSelector->Finish(option);
1848-
#endif
18491813
}
18501814

18511815
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)