Searching/Deleting Unused Elements

You can delete elements (scalar or complex) not used in the conditional table.

  1. In the "Extras" menu, select Show Unused Elements.

    The "Search Results" view opens. It shows all elements listed in the "Outline" tab, but not used in the conditional table.

    A scalar element in the "Outline" tab is unused in the conditional table (i.e. does not appear in the generated ESDL code) if one of the Closedfollowing conditions is fulfilled.

    An included class is unused in the conditional table if the Closedfollowing conditions are fulfilled.

    • The included class is not used in an instruction.

      AND

    • Neither Get port nor Set port of the included class is activated in the element's properties editor.

      AND

    • The included class does not contain (directly or indirectly) an exported element that is used.

      AND – if applicable –

    • The included C code class contains no target/arithmetic/implementation combination with an external header that is used globally (activated option Use header global; see Adding a Header File to the Source Module).
  2. In the "Elements" tab of the "Search Results" view, select one, several, or all (<Ctrl> + <a>) elements.

  3. Do one of the following:

    • Open the context menu and select Delete.
    • Press the Del key.

    The selected unused elements are deleted.

See also

Search Results View

Reserved Keywords