TOC PREV NEXT INDEX DOC LIST MASTER INDEX




Compile > Show > Unused

The Compile > Show > Unused command shows, in a viewer window, the names of units containing declarations that are unused in the specified closure (see next page). If only one unit is found to contain unused declarations, that unit is displayed in an editor window instead off a viewer window. When you choose this command, the Show Unused dialog box appears.

Show Unused Dialog Box Fields:

Name Field

In the Name field, enter the names of the unit in which you want to search for unused declarations. If you call this command from the language editor, the default is the current unit; if you call it from the directory viewer, the default is any unit selected in the viewer.

Context Field

Use the Context field to specify the context of the units specified in the Name field. The default is the current context.

Radio Buttons

You can use wildcards in this field to specify one or more units. The two radio buttons determine how the wildcard expression in the Name field is expanded.

Scope Field

Use the Scope field to expand the search to include any units in the import closure of the views specified there. The default closure is the current context.

Import Closure Check Box

Direct execution of show-unused from a language unit will cause declarations in that unit that are unused in the scope of the enclosing view to be marked.

Unused Declarations Viewer

If multiple units contain unused declarations, an Unused declarations viewer is opened. It displays the names of each unit and any unused declarations in that unit.

If you double-click on a unit name in the viewer, the language editor is opened on that unit with each unused declaration shaded. In the language editor, you can move among unused declarations using the two View > Message commands.

If you double-click on an unused declaration in the viewer, the language editor is opened on that unit; the occurrence of the specified declaration is highlighted.

Command Line Interface: show_unused

Additional Topics

For more information, click on a topic:


Rational Software Corporation 
http://www.rational.com
support@rational.com
techpubs@rational.com
Copyright © 1993-2001, Rational Software Corporation. All rights reserved.
TOC PREV NEXT INDEX DOC LIST MASTER INDEX TECHNOTES APEX TIPS