Open Bug 1415819 (deadcode-codecoverage) Opened 3 years ago Updated 1 year ago

[meta] Delete dead code using the files with zero coverage report

Categories

(Testing :: Code Coverage, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

People

(Reporter: marco, Unassigned)

References

(Depends on 3 open bugs, Blocks 1 open bug, )

Details

(Keywords: meta)

The files with zero coverage report (https://marco-c.github.io/code-coverage-reports/) can give an idea of files that might be dead code.

We can't simply remove all of them, since some might simply be untested, but many of the completely untested files are indeed dead code.

Removing these files has several benefits:
1) Reduce build times;
2) Reduce the size of the resulting binary;
3) Reduce attack surface, if the files contain code that might be executable in some corner case that we don't actively support anymore (e.g. bug 1413854).
Depends on: 1415543
Alias: deadcode-codecoverage
Version: Version 3 → unspecified
Depends on: 1416712
Depends on: 1418425
Depends on: 1422041
Depends on: 1425340
Depends on: 1426513
Depends on: 1426284
Depends on: 1436413
Depends on: 1436425
Depends on: 1448362
Depends on: 1460966
Depends on: 1466661
Depends on: 1485216
Depends on: 1485214
Depends on: 1486528
Depends on: 1488401
Depends on: 1492584
See Also: → reachable
Depends on: 1546505
Depends on: 1579084
Depends on: 1593710
Depends on: 1598019
Depends on: 1611197
You need to log in before you can comment on or make changes to this bug.