[Misc] Apply SonarCloud rule cpp:S125
Description
- Removes commented-out code
Checklist
-
Documentation reflects the changes made. -
Merge Request title is clear, concise, and suitable as a changelog entry. See our contributing docs
References
Closes #1421 (closed)
Edited by Michael Davis