Rule Definition
Unreferenced code may be the symptom of Dead Code. Dead Code must be avoided as it makes source code less readable and increases the cost of the software maintenance.
Warning:
Unreferenced code can also be the symptoms of missing code (code not included in the source code analysis).
Remediation
Check if the Function is truly unnecessary.
Remove Functions that are not used.
Reference
CISQ/OMG : ASCMM-MNT-20 (Unreachable Named Callable or Method Control Element)
https://www.omg.org/spec/ASCMM/1.0/PDF
CWE-561 (Dead Code) : https://cwe.mitre.org/data/definitions/561.html
Related Technologies
ASP
Forms
Visual Basic
.Net
C++
PL/SQL
JEE
Microsoft T-SQL
Sybase T-SQL
Technical Criterion
CWE-561 - Dead Code
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.