How do I clean up the requires clause in a Delphi Package

462 Views Asked by At

I have a project that contains a number of design time packages (for installing components into the IDE). Some of these packages have quite long requires clauses and I was wondering if there is a way to remove any packages listed there that are not strictly required to build the package.

Just to make things clear, I'm concerned with the requires clause, not the contains or (non-existent) uses clause. Although these are related in that if a unit in the contains clause (or is implicitly imported) is in another package, that package (or another package that requires it) needs to be in the requires clause.

0

There are 0 best solutions below