How to find and remove unused Delphi packages from a project

How to find and remove unused Delphi runtime packages from a project that uses packages?

I have a Delphi project consisting of several packages, in the required part of the packages there are several Borland / 3rd party packages (rtl.dcp, vcl.dcp). I know that I need most of them, but there are those that, as I know, I don’t need, that crept over time, maybe the component used them once, but then this component was removed, or maybe it’s There was a test code from me.

How to find out which ones are needed and which are not? and if they are not needed, should they still be distributed with the final application or have any effect on the size / memory size of the application?

I try to make everything as streamlined as possible.

+5
source share
3 answers

If you specify a package to be used as the runime package, all packages that the package requires must be deployed as a run-time package. The Delphi compiler automatically checks if this is true. Therefore, you do not need to explicitly request rtl.dcp if you need one of your other packages. This means that you can specify only those run-time packages that you definitely need, and the rest will be added by the compiler. Then you only need to check which packages you need to deploy at the end.

+5
source

ICARUS - , .pas , ... ! . http://peganza.com/#ICARUS

Pascal Analyzer - , ICARUS, . http://peganza.com/#PAL

+1

, , , . , .

" .dproj ( RAD) .dpr. . .dproj , Delphi." ( , )

0

All Articles