Sounds strange. AFAIK Lazarus adds units to a uses section when a component is dropped onto designer.
Sure does
It's like this:
I have a long lidt of data that is either checked or not (True/False - Yes/No ...) with an option for tristate (Don't Care/Maybe) and a string attached.
User should be able to set all these (actually used for selecting from database).
So - I created a control to handle these items and a list of them.
The control accesses the list of items (unit CheckData defines as well items as the list to hold them), but the program (GUI) itself does not.
So unit CheckData is not needed in uses clause of application.
But Lazarus (or something else) adds it to the uses clause - and then issues a hint that it is not needed...
Checked the package - and the only thing I can find, is in Options/Usage at the bottom "add package unit to uses section" - it's unchecked, and it shouldn't add all units of the package, as understand the wording.