Solved

Code Cleanup

Posted on 2004-04-14
3
177 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

756 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