Code Inspection: Unused variable
Configure inspections: Settings | Editor | Inspections
Show intention actions: AltEnter
Reports unused arguments, variables, or parameters.
Example (PostgreSQL):
CREATE FUNCTION foo(PARAMUSED INT, PARAMUNUSED INT) RETURNS INT AS
$$
BEGIN
RETURN PARAMUSED;
END
$$ LANGUAGE plpgsql;
The PARAMUNUSED
parameter is not used in the function and might be deleted.
Place the caret at the highlighted line and press AltEnter or click
.
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.