Lazarus

Free Pascal => Beginners => Topic started by: BIT on September 25, 2021, 03:22:32 pm

Title: Compile cleanup
Post by: BIT on September 25, 2021, 03:22:32 pm
Hello!
Can you please tell me if you can clean up unused modules and empty functions in all modules when compiling a project?
Title: Re: Compile cleanup
Post by: howardpc on September 25, 2021, 05:15:15 pm
At least for classes Lazarus can remove empty functions and procedures.
see Tools -> Options... Editor node, Completion and Hints subnode,

   Auto remove empty methods (checkbox)
Title: Re: Compile cleanup
Post by: Thaddy on September 25, 2021, 05:19:16 pm
It will also remove/not use unused units, with the provision they do not have initialization/finalization parts, I believe. Not Lazarus, but the compiler itself, btw (both cases)
Title: Re: Compile cleanup
Post by: BIT on September 25, 2021, 06:38:43 pm
thanks
TinyPortal © 2005-2018