Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.32 KB

File metadata and controls

43 lines (29 loc) · 1.32 KB
Root.Redundancy.UnreachableCode.UnusedFunction Parent Index
Sibling aspects UnreachableStatement

UnusedFunction

An unused function is a function that is never called during code execution.

Subaspects

This aspect does not have any sub aspects.

Example

def func():
    pass

print('coala is always written with lowercase c')

Importance

Unused functions make the source code more longer and more difficult to maintain.

How to fix this

It is recommended to remove those functions. If you would like to access it's source code later for other purposes, you can rely on a version control system like Git, Mercurial or Subversion.