Solved

Code Cleanup

Posted on 2004-04-14
3
173 Views
Last Modified: 2010-04-05
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?
0
Comment
Question by:rbohac
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
Chadak earned 100 total points
ID: 10827882
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
 
LVL 17

Assisted Solution

by:mokule
mokule earned 25 total points
ID: 10827939
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
 
LVL 1

Expert Comment

by:Chadak
ID: 10827991
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

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now