Bug 1415819 (deadcode-codecoverage)

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



2 years ago
3 months ago


(Reporter: marco, Unassigned)


(Depends on 2 bugs, Blocks 1 bug, {meta})

Firefox Tracking Flags

(Not tracked)



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: 1449610
Depends on: 1485216
Depends on: 1485214
Depends on: 1486528
Depends on: 1488401
Depends on: 1492584
See Also: → reachable
Depends on: 1546505
You need to log in before you can comment on or make changes to this bug.