You are here: AxTools > CodeSMART 2007 for VB6 > Documentation > User's Guide > Code Analyzer > Dead Code Detection
While browsing this page, why not start downloading the evaluation setup kit (direct download, no questions asked).

Dead Code Detection

While developing software programs, some project parts are usually rewritten and altered several times so that there are good chances for dead (unused) variables, constants, types, enums and even entire procedures or components to be left behind. The CodeSMART Code Analyzer can track and report such unused code that has a negative impact on the size of the resulting application.

Because dead code is divided into several categories (dead variables, dead declares, dead enums, dead procedures and even components, etc.), you can instruct the Code Analyzer to search for all or just some of them by using the Code Analysis Options dialog box.

To change dead code detection settings:

  1. In the CodeSMART main menu, select the Code Analyzer entry from the Reviews popup, or click the same button from the Other Tools toolbar to display the Code Analyzer dialog-box (quick toolbar and menu references are available).
  2. Click on the detailed configuration link in order to display the Code Analyzer Options dialog and then activate the Dead Code tab.
    Dead Code Detection
  3. Check/uncheck the items you want to include/exclude from analysis.
  4. Click OK to make the changes permanent.
See also
Code Analyzer Overview
Slow Code Detection
Potential Problems Detection
Collection Classes Options
Other Options
Analyzing Code

Back To Top

Copyright © 2008 AxTools - CodeSMART 2007 for VB6 - Code Analyzer