ReSharper 2017.1 Help

Code Inspection: Local function never used

ReSharper suggests removing unused local functions to clear up the code. You can remove such a function with a quick-fix or write the code that uses it.

Suboptimal codeAfter the quick-fix
public int MyMethod() { int Sum(int x, int y) { return x + y; } return 42; }
public int MyMethod() { return 42; }

See Also

Last modified: 4 July 2017