Recent

Author Topic: Compile cleanup  (Read 1969 times)

BIT

  • Full Member
  • ***
  • Posts: 158
Compile cleanup
« 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?

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Compile cleanup
« Reply #1 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)

Thaddy

  • Hero Member
  • *****
  • Posts: 14205
  • Probably until I exterminate Putin.
Re: Compile cleanup
« Reply #2 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)
Specialize a type, not a var.

BIT

  • Full Member
  • ***
  • Posts: 158
Re: Compile cleanup
« Reply #3 on: September 25, 2021, 06:38:43 pm »
thanks

 

TinyPortal © 2005-2018