CodeCop Warning AA0228
The local method must be used; otherwise removed.
Description
The local method must be used, otherwise the method is not necessary.
Reason for the rule
Unused methods can be confusing for the reader and can cost performance to the system.
Bad code example
codeunit 10 MyCodeunit
{
var
RenameErr: Label 'You cannot rename';
local procedure Method1()
begin
Message(RenameErr);
end;
procedure Method2()
begin
Error(RenameErr);
end;
}
Good code example
codeunit 10 MyCodeunit
{
var
RenameErr: Label 'You cannot rename';
procedure Method2()
begin
Error(RenameErr);
end;
}
Good and bad practices for fixing the rule
Remove the unused local method from the code.
See Also
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示