Tuto WINDEV 25
370 Part 6: Optimizing and debuging a project Procedure not run In our project, the audit indicates that a procedure is never run. In huge projects, you may want to create one or more procedures to perform a process then, further to a code reorganization, the procedure is no longer used but it remains in the project. The presence of unused procedures unnecessarily consumes the resources distributed to the end users. ▶ To fix this problem: 1. Click the [...] button to get more details. The window that lists the dead codes is displayed. 2. The "ObsoleteProcedure" procedure is never called. This window is used to: • specify that the procedure is still used ("Flag as useful"). In this case, the procedure will not be taken into account anymore during the audit. • delete the procedure if it is actually unused ("Delete"). • see the procedure ("View"). • find the use cases in the strings for example ("Search"). 3. In our case, this procedure is actually unused, click "Delete". 4. A window is displayed, asking you to confirm the deletion. Click the "Delete" button to confirm the deletion. 5. Close the window of dead code (click the cross in the top right corner). ▶ In the window of static audit, click the "Refresh" button to update the audit report.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==