Recent

Author Topic: Compile cleanup  (Read 1021 times)

BIT

  • Full Member
  • ***
  • Posts: 119
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: 3783
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: 10929
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)
The average programmer productivity is 4-5 hours per day. Peak performance 72 hours for short bursts. MTBF is 1 second or less.

BIT

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

 

TinyPortal © 2005-2018