Synopsis: | Avoid unused static functions |
Language: | C |
Severity Level: | 8 |
Category: | Declarations |
Description: |
Static functions have file scope. If they are not called somewherein the same file as they are defined, then they are dead and can be removed. Example: // file doesn't contain any call to getstatus static int getstatus(int index) { } |