Recent

Author Topic: Compile cleanup  (Read 1705 times)

BIT

  • Full Member
  • ***
  • Posts: 135
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: 4133
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: 12971
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)
I actually get compliments for being rude... (well, Dutch, but that is the same)

BIT

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

 

TinyPortal © 2005-2018