The Schema menu in the Schema Browser enables you to locate unused classes, properties, class constants, and methods in one or more schemas. An entity is considered unused according to the following criteria.
Classes
Has no subclasses
Is not a subclass of Application, Global, or WebSession
Is not used in a Web services exposure
Is not the membership of a Collection class
Is not exported
Has no method references, excluding its own methods
Has no properties used as keys
Is not used in an RPS mapping
Has no property references in other classes
Has no inverses
Constants
Has no method references
Has no constant references
Is not exported
Properties
Has no method references
Is not used as a key
Is not exported
Is not used in a Web service
Is not a form control property
Is not used in a condition
Is not an HTML property
Methods
Is not a condition
Does not implement an interface
Is not used in an RPS mapping
Is not an event method
Is not used in a Web service
Is not exported
Is not a JadeWebService method
Is not a generated Web services method
Is not checked out
Is not an interface method with implementors
Is not a re‑implemented RootSchema method
Has no method references other than itself
Is a re‑implemented method but the super‑methods have no method references
Is not an application initialize or finalize method
To locate unused entities
Select the Find Unused Class Entities command from the Schema menu in the Schema Browser.
The Find Unused Class Entities dialog, shown in the following image, is then displayed.
If you do not want to search for unused entities in the schema selected in the Schema Browser (the default value), perform one of the following actions in the Search Criteria group box.
Select the Search all schemas option button, to locate unused entities in all schemas in your JADE database.
In the combo box below the Search selected schema option button, select the schema in which you want to locate unused entities.
Select the Search selected schema and all sub-schemas option button and in the combo box above the option button, select the schema in which you want to locate unused entities in that schema and its subschemas.
Select the Search selected class in selected schema option button and in the combo box below the option button, select the class of the schema selected in the first combo box or that has a local copy class that will be scanned for unused entities.
In the Reporting Options group box:
Uncheck the Classes check box if you do not want to report on or display unused classes. This check box is checked by default; that is, unused classes are output to the report or displayed in a table in the Unused Class Entities form.
Uncheck the Properties check box if you do not want to report on or display unused properties. This check box is checked by default; that is, unused properties are output to the report or displayed in a table in the Unused Class Entities form.
Uncheck the Constants check box if you do not want to report on or display unused class constants. This check box is checked by default; that is, unused class constants are output to the report or displayed in a table in the Unused Class Entities form.
Uncheck the Methods check box if you do not want to report on or display unused methods. This check box is checked by default; that is, unused methods output to the report or displayed in a table in the Unused Class Entities form.
If you want to output the unused entities to a print-ready preview instead of displaying them in a table in the Unused Class Entities form (the default output action), select the Print Preview option button in the Output Options group box.
Click the Search button to initiate the search of unused entities that match your search criteria. Alternatively, click the Cancel button to abandon your selections.
If the selected schema or schemas are versioned, only the classes in the current version of the schema or schemas are searched for unused entities.
If you select the Print Preview output option, print‑ready output is produced, containing the following columns.
Schema
Class
Entity Type (the type of the entity that is unused)
Class Entity Name (class constant, method, or property name; else blank when the unused entity is the class)
This list is ordered by schema name followed by class name and then unused constants, unused methods, and unused properties within each class.
For details about displaying unused entities output to the Unused Class Entities form, see "Displaying Unused Schema Entities", in the following section.