Forum > Beginners

Compile cleanup

(1/1)

BIT:
Hello!
Can you please tell me if you can clean up unused modules and empty functions in all modules when compiling a project?

howardpc:
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)

Thaddy:
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)

BIT:
thanks

Navigation

[0] Message Index

Go to full version