Skip to content

[Algorithm] Remove unused parser and TableView utilities#15558

Merged
ktf merged 1 commit into
AliceO2Group:devfrom
sawenzel:cleanup/remove-unused-algorithm-parser
Jun 26, 2026
Merged

[Algorithm] Remove unused parser and TableView utilities#15558
ktf merged 1 commit into
AliceO2Group:devfrom
sawenzel:cleanup/remove-unused-algorithm-parser

Conversation

@sawenzel

@sawenzel sawenzel commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

A small cleanup. The header-only utilities Parser.h (ForwardParser/ReverseParser), TableView.h, O2FormatParser.h and PageParser.h in the Algorithm module have no callers: the only o2::algorithm:: symbol used anywhere outside the module — in AliceO2 and O2Physics — is flatten (from FlattenRestore.h). These four headers are referenced only by their own unit tests, and the #include "Algorithm/Parser.h" lines in GPU/TPC sources reference none of their symbols (stale includes).

This removes the unused headers, their tests, the corresponding o2_add_test entries, and the 5 stale includes. The actively-used parts of the module (RangeTokenizer.h, FlattenRestore.h, HeaderStack.h, mpl_tools.h) are untouched. Pure dead-code removal — no behavioural change.

The header-only utilities Parser.h (ForwardParser/ReverseParser),
TableView.h, O2FormatParser.h and PageParser.h have no users: the only
o2::algorithm:: symbol referenced anywhere outside the module (across
AliceO2 and O2Physics) is flatten, from FlattenRestore.h. These four
headers are exercised solely by their own unit tests, and the
#include "Algorithm/Parser.h" lines in GPU/TPC sources reference none of
their symbols.

Remove the headers, their tests, the corresponding o2_add_test entries,
and the stale includes. RangeTokenizer.h, FlattenRestore.h, HeaderStack.h
and mpl_tools.h (the parts actually in use) are untouched.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sawenzel sawenzel force-pushed the cleanup/remove-unused-algorithm-parser branch from 6c7d348 to 616c54d Compare June 25, 2026 20:05
@sawenzel sawenzel requested a review from ktf June 26, 2026 07:22
@ktf ktf merged commit dfe0aaa into AliceO2Group:dev Jun 26, 2026
10 of 11 checks passed
@sawenzel sawenzel deleted the cleanup/remove-unused-algorithm-parser branch June 26, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants