The compiler and linker are pretty smart about omitting code that is never called (called “dead code elimination”), so this should generally happen automatically. For example, if you never call the map()
function then it will not be included in the executable.
That said, remember that the blinklib
code itself may use some functionality so it will be included even if you do not use it. A good example of this is the Timer
class, which is used internally to keep track of when the blink should go into warm sleep mode.