Finding unused functions/methods.

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
Claus Paludan
Forum Newbie
Posts: 2
Joined: Wed Feb 15, 2006 9:20 am

Finding unused functions/methods.

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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
Claus Paludan
Forum Newbie
Posts: 2
Joined: Wed Feb 15, 2006 9:20 am

Post by Claus Paludan »

Thanks - will try and see if I can get something meaningfull to work :)
Post Reply