So you\'ve got some legacy code lying around in a fairly hefty project. How can you find and delete dead functions?
I\'ve seen these two references: Find unused code
Because of the fairly strict way python code is presented, would it be that hard to build a list of functions based on a regex looking for def function_name(..)
?
And then search for each name and tot up how many times it features in the code. It wouldn't naturally take comments into account but as long as you're having a look at functions with less than two or three instances...
It's a bit Spartan but it sounds like a nice sleepy-weekend task =)