# VERILOG2002: Unused task or function formal arguments should be removed ## Summary ```{raw} html
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| MEDIUM | - | - | Intentionality | Logical | 10min | synthesis, vscode, simulation, linter, dead-code |
Unused task or function formal arguments should be removed.
function [7:0] sum (input [7:0] a, b, c); // Noncompliant: 'c' is unused
begin
sum = a + b;
end
endfunction
task [7:0] sum;
input [7:0] a, b;
output [7:0] c, d; // Noncompliant: 'd' is unused
begin
c = a + b;
end
endtask
function [7:0] sum (input [7:0] a, b);
begin
sum = a + b;
end
endfunction
task [7:0] sum;
input [7:0] a, b;
output [7:0] c;
begin
c = a + b;
end
endtask
```
## Parameters
No parameters.
```{raw} html
```