Code Cleanup

Over time I usually end up rewriting part of my code, or changing the way I impliment something completely in my long term projects. I know that the compiler will skip any code that is not actually called withing the application. This can be proven by placing a breakpoint inside of a funciton that is never called, the red circle will have an X in it.

Is there a way in the IDE that I can tell what code is not used anymore so I can clean it up?
LVL 6
rbohacAsked:
Who is Participating?
 
ChadakConnect With a Mentor Commented:
Hi,

    I know for one thing that if you build, when you look in the left column, all line that were compiled has a blue dot , so in theory any line that hasn't a blue dot isnt used.

   But i think there might be a better method

Chad
0
 
mokuleConnect With a Mentor Commented:
Hi,

As to this blue dots You should be careful.
It happens, at least in Delphi 5, that they are in wrong places when you've got improper CR/LF
0
 
ChadakCommented:
Hi!

   That's true, the best way to know that your blue dots are ok, it's to go at the last method of your units and check if they are in line with your code.

Chad
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.