Procedure Not Used
Locates procedures that are never invoked from user code.
NEW! This inspection is only available in pre-release builds.
Remarks
Not all unused procedures can/should be removed: ignore any inspection results for event handler procedures or annotate them with @EntryPoint. Members that are annotated with @EntryPoint (or @ExcelHotkey) are not flagged by this inspection, regardless of the presence or absence of user code references. Moreover, unused public members of exposed class modules will not be reported.
Reasoning
Unused procedures are dead code that should probably be removed. Note, a procedure may be effectively "not used" in code, but attached to some Shape object in the host document: in such cases the inspection result should be ignored.
Default severity
Warning
Inspection type
CodeQualityIssues
QuickFixes
The following quickfixes are available for this inspection:
Examples
This example should trigger a result
This example should NOT trigger a result
This example should NOT trigger a result
This example should trigger a result
This example should NOT trigger a result
Rubberduck.CodeAnalysis.Inspections.Concrete.ProcedureNotUsedInspection.cs (Prerelease-v2.5.2.6174)