View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0023928||Lazarus||-||public||2013-02-20 21:20||2020-12-05 14:16|
|Reporter||John Shand||Assigned To|
|Product Version||1.1 (SVN)|
|Summary||0023928: Removing unneeded controls and lazarus automatically removes those required units for that or those controls|
|Description||I am just wondering if this feature could be added to lazarus.|
1. you removed unneeded controls from your form (but units relating to those controls are left behind in the uses clause.
2. after removing those controls, lazarus should also remove those units required for the removed controls.
|Tags||No tags attached.|
|Fixed in Revision|
||Not fully automated, but: Menu > Source > Refactoring > Unused Units|
||yeah, but if you don't know the units well and what requires them, then you have a problem.|
Say I drop a component on the form an then later on decide to create that control elsewhere in code and then remove the now not needed component from the form: now codetools must scan my entire code to see wether or noy I use that unit before removing it?
Since no developer has shown an interest in this since 2013 and since no one supplied a patch impelemnting this, I would suggest to resolve this as "no change required" or "won't fix".