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
its not only searching function names, but also all the imported packages not in use. you need to search the code for all the imported packages (including aliases) and search used functions, then create a list of the specific imports from each package (example instead of import os, replace with from os import listdir, getcwd,......)