Re: [GD-General] remove unused functions
Brought to you by:
vexxed72
From: Neil S. <ne...@r0...> - 2003-05-19 21:21:51
|
> One thing I would like to do to it is to start removing un-used > functions. I tried to use MSDev to remove un-referenced functions as a > start but didn't find any. It turns out quite a few of the "un-used" > functions are "referenced" (and thus can't be that easily automatically > determined) but I know from how the game and engine code is supposed to > run that they won't ever be called. > > They are not exactly unreachable code either, so doing the unreachable > code thing also doesn't work. What about using a code coverage tool, like Compuware's DevPartner or something similar? They are really designed to show what code is (and isn't) covered by unit tests, but they might be able to work with an entire run of your code. If not, you could create some unit tests for each of your components, such as rendering, AI, etc., and then run them through such a tool. - Neil. |