Internal procedure not referenced (LC0052)
An internal procedure that is never called from within the extension is dead code and should be removed. Unused internal procedures add maintenance burden and code noise.
Example
The following internal procedure is never referenced:
codeunit 50100 MyCodeunit
{
internal procedure UnusedHelper() // Internal procedure not referenced [LC0052]
begin
end;
procedure DoWork()
begin
// UnusedHelper is never called
end;
}
To fix this, either use the procedure or remove it:
codeunit 50100 MyCodeunit
{
procedure DoWork()
begin
end;
}
See also
- LC0053 - Internal procedure only used in current object