I just had the chance to play with Caolan‘s cool callcatcher program to search and destroy (or comment out rather) lots of unused methods in Calc’s code. It was surprisingly simple to install and use it. All I had to do after downloading the source package was to
tar xvf callcatcher-1.0.8.tar.gz cd callcatcher-1.0.8 sudo ./setup.py install
then replace all
g++ calls with
callcatcher gcc and
callcatcher g++, respectively, to catch all defined functions and their references (or lack thereof). That’s all. Once done, run
callanalyse [executable or shared library] to generate the summary output of all unused methods. It was pretty accurate, and as he claims there was no false positives as far as I could tell.