[False asumption, sorry!] Unused functions are compiled, how to avoid this?

lloyddean:
The 'linker' will strip any code that your 'sketch' does not reference directly or indirectly.

A little pedanticy ... The compiler can also excise unused code (and data).