Searching/Deleting Unused Elements
You can search and delete elements (scalar, composite, complex) not used in the C code.
In the Extras menu, select Show Unused Elements.
The Search Results view opens below the tabs and combo boxes in the Specification view. It shows all elements listed in the Outline tab, but not present in the C code of the currently selected code variant.
An element is recognized as used if one of the
following conditions is fulfilled. NOTICE
Component functionality may be damaged
Deleting an element that is unused in the currently loaded variant, but used in other variants, will probably damage the functionality of the other variants.
To avoid this damage, check the affected variants 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