Solved

Code Cleanup

Posted on 2004-04-14
3
178 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SUM 2 INTEGER ARRAYS INTO 1 10 117
Tvertscrollbox like a whatsapp layout 5 68
shape, triangle, dbctrlgrid 3 46
Delphi Seattle StructureView color 1 34
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

734 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