Root.Redundancy.UnreachableCode.UnusedFunction |
Parent | Index |
Sibling aspects | UnreachableStatement |
An unused function is a function that is never called during code execution.
This aspect does not have any sub aspects.
def func():
pass
print('coala is always written with lowercase c')
Unused functions make the source code more longer and more difficult to maintain.
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.