Searching/Deleting Unused Methods/Runnables

You cannot search for unused methods/runnables in the SWC and its sub-components in the same way as for unused elements. Instead, proceed as follows:

  1. Do one of the following:

    Information, warning and error messages are displayed in the Messages tab of the ASCET monitor window. Unused methods/runnables are indicated by the following messages:

    Location in
    monitor

    Message
    No.

    Message text

    methods

    <method> node

    WBdl2

    method "method name" (using <*>Closed  = Block Diagram or ESDL or C codespecification) is not defined

    Global Analysis
    node

    IMdl93

    method <method name> not used in this project

    runnables

    <runnable> node

    WBdl2

    runnable "runnable name" (using <*> specification) is not defined

  2. To delete an unused method/runnable, or an unused process in an included module, proceed as follows:

    1. In the ASCET monitor window, double-click a warning message with number WBdl2.

      In case of a method, you can also double-click an information message with number IMdl93.

      The parent component of the method/runnable opens. The method/runnable mentioned in the message is selected in the Outline tab.

    2. Right-click the method/runnable and select Delete from the context menu.

See also

Searching/Deleting Unused Elements