Telerik® JustCode™ by Progress

The Remove Unused Parameter quick fix is available once Telerik® JustCode™ has detected a method parameter that is not used in the method body. Telerik® JustCode™ underlines the parameter and suggests you remove it.

Note

Language Support

Supported: C#, VB.NET, JavaScript

Not relevant: ASP.NET, XAML, HTML

To remove unused parameter and all assignments

  1. Position the caret over the underlined parameter.
  2. Press Alt+Enter. From the pop-up menu, select Remove 'b' and All Assignments

    Quick Fix Remove Unused Parameter And All Assignments
  3. The result is:

    Quick Fix Remove Unused Parameter Result

To remove unused parameter and keep side-effect assignments

  1. Position the caret over the underlined parameter.
  2. Press Alt+Enter. From the pop-up menu, select Remove 'b' and Keep Side-Effect Assignments

    Quick Fix Remove Unused Parameter And All Assignments Keeping Side Effects
  3. The result is:

    Quick Fix Keeping Side Effects Result

See Also