Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /homepages/7/d105059906/htdocs/wp.kohei.us/wp-content/plugins/wp-syntax/wp-syntax.php on line 383
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.