On 02/10/2014 22:54, silvioprog wrote:
On Thu, Oct 2, 2014 at 6:48 PM, Mattias Gaertner
<[email protected] <mailto:[email protected]>> wrote:
On Thu, 2 Oct 2014 18:36:38 -0300
silvioprog <[email protected] <mailto:[email protected]>> wrote:
>[...]
> Oops, no no, sorry hehe... to the unused units. E.g:
>
> program Project1;
> {$mode objfpc}{$H+}
> uses
> sysutils, // normal
> contnrs, // gray
> fgl; // gray
> begin
> WriteLn(IntToStr(10));end.
>
>
> SysUtils - used - normal; contnrs/fgl - unused - so, gray.
>
> See attached picture, it shows this feature in Android Studio. =)
I see.
When you compile in Lazarus, the units are underlined.
There is also a hint icon, which you can click to remove the unit.
Mattias
Awesome!
I'm using Lazarus 1.2.4. Is this feature available in Lazarus from trunk?
There is also an entry in "Refactoring" (pop up, or Menu: Source)
"Unused Units" (Though (iirc) it in only 99% accurate)
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus