Fork me on GitHub
TypeName RemovePrivateMethodNeverUsedAnalyzer
Check Id CC0068
Category Usage
Severity Info

Cause

Removes a private method that is not in use.

Example

public class MyClass
{
    private int field;

    public MyClass() { }

    private void MyMethod()
    {
        field = 1;            
    }
}

Code fix

A code fix will be presented to you that will transform the code removing the unused method:

public class MyClass
{
    private int field;

    public MyClass() { }
}

Code fix

Related rules

TBD

See also

TBD