Internal procedure only used in current object (LC0053)
When an internal procedure is only called from within the same object, it should be declared as local instead. This reduces the procedure’s visibility to the minimum required scope.
Example
The following internal procedure is only used within the same codeunit:
codeunit 50100 MyCodeunit
{
internal procedure Helper() // Internal procedure only used in current object [LC0053]
begin
end;
procedure DoWork()
begin
Helper();
end;
}
To fix this, change the procedure to local:
codeunit 50100 MyCodeunit
{
local procedure Helper()
begin
end;
procedure DoWork()
begin
Helper();
end;
}
See also
- LC0052 - Internal procedure not referenced