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
Solved

Code Cleanup

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 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