Searching/Deleting Unused Elements
You can search or delete unused elements (scalar, composite, complex) in the entire project.
In the Extras menu, select Show Unused Elements.
The Search Results view opens below the tabs in the Specification view. It shows all unused elements in the project and in the included components.
The project configuration (i.e. target, code generator, implementation, dataset) is used to determine the relevant variants of included components. An element is used in the project context if at least one of the
following conditions is fulfilled.NOTICE
Component functionality may be damaged
You cannot determine, from the project editor, whether the element of an included component is potentially used in another variant of its parent component.
Deleting an element that is unused in the component variant included in the project, but used in other variants, will probably damage the functionality of the other variants.
To avoid this damage, check the variants of the affected included component before you delete the element.
- In the Elements tab of the Search Results view, select one, several, or all (<Ctrl> + <a>) elements.
Do one of the following:
Open the context menu and select Delete.
Press <Delete>.
The selected unused elements are deleted.
See also