We've had a handful of dead code removal PRs over the last month or two:
Also well as an instance of what was thought to be dead code, but it'd actually just been forgotten to be used: #36137.
It could be beneficial to get -Wunused & related flags enabled, to catch dead/unused code in CI. A number of changes here need to go to subtrees.
Enabling some of these flags may also help enforce other stuff, like inline constexpr usage (#35852). i.e:
/home/runner/work/_temp/src/leveldb/db/dbformat.h:67:29: error: 'leveldb::kMaxSequenceNumber' defined but not used [-Werror=unused-const-variable=]
67 | static const SequenceNumber kMaxSequenceNumber = ((0x1ull << 56) - 1);
| ^~~~~~~~~~~~~~~~~~
and there are some related changes here.