4D v14.3Searching for unused elements |
||
|
4D v14.3
Searching for unused elements
Searching for unused elements
Two new search commands allow you to detect variables and methods that are not used in your code. You can then remove them to free up memory. The Find Unused Methods and Global Variables command looks for project methods as well as "global" variables (process and interprocess variables) that are declared but not used. The search results appear in a standard Results window. A project method is considered to be unused when:
A process or interprocess variable is considered to be unused when:
Note that certain uses cannot be detected by the function - i.e. an element considered unused may in fact be used. This is the case in the following code: v:="method" This code builds a method name. The mymethod42 project method is considered unused when in fact it is called. Therefore, it is advisable to check that the elements declared as unused are in fact unnecessary before you remove them. The Find Unused Local Variables command looks for local variables that are declared but not used. The search results appear in a standard Results window. A local variable is considered to be unused when:
|
PROPERTIES
Product: 4D ARTICLE USAGE
4D Design Reference ( 4D v14 R2) |