Extract your code from utils.pas, in client_xxxx_utils.pas. Charge them with normal speed for the job to do this, rebuild, smoke test, etc. The problem is resolved.
Well, in case it is a difficult task to find out what needs to be cut ... Compile the program and look at the utils.pas node. As a rule, you should have blue dots in the margins, which indicates that you can set breakpoints. The dead code will not have blue dots in the margins, as this code has been eliminated by the linker. Anything without a blue dot is what they donβt need.
For a more automated approach, perhaps the Peganza Pascal Analyzer can identify dead code in one of many reports.
Here are some related questions here on SO with similar answers (some of me!)
Search for unused (so-called "dead") code in Delphi
How to "automatically" remove unused units from a uses clause?
Chris thornton
source share