Page 1 of 1

Finding unused functions/methods.

Posted: Sat Feb 18, 2006 10:19 am
by Claus Paludan
I would like to know if any one has some suggestions as how to find unused functions/methods in a large project with many files.

I am using eclipse with the phpeclipse plugin so a plugin would be nice, but other ideas are most welcome.

Cheers

Posted: Sat Feb 18, 2006 10:22 am
by feyd
could possibly use the built-in tokenizer to quickly parse the files looking for function references cataloging them as you go.

http://php.net/tokenizer for more info

Posted: Sat Feb 18, 2006 10:39 am
by Claus Paludan
Thanks - will try and see if I can get something meaningfull to work :)