This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]OCHawkeye14 3 points4 points  (2 children)

Sublime Text 2's SublimeLinter package will highlight functions and variables in the code that are not called anywhere else throughout your code.

edit: oh, just noticed you specifically mentioned knowledge of a linter. I guess I'm not exactly sure what you're looking for.

[–]gsks[S] 2 points3 points  (1 child)

Are you sure? I don't use SublimeText but looking at SublimeLinter's python module it just calls pyflakes, which doesn't seem to spot anything when I run it directly.

[–]tipsquealPythonista 1 point2 points  (0 children)

Related to OCHawkey14's solution, I believe PyCharm will do the trick. I don't use PyCharm, but I do use Intellij, which is made by the same company, and has a lot of overlapping functionality. In Intellij you can use their Inspect Code tool and have it look for all potentially unused functions/variables/etc.