Lazarus
Free Pascal => Beginners => Topic started 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?
-
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)
-
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)
-
thanks