Code size

As was said above, code in a sketch that is not used has no impact on execution speed. Code can be executed from an interrupt, but the only interrupt that is operating in a minimal sketch is a few lines of code used for millis and delay. These functions are the heartbeat of almost every sketch so there's not much point in removing them.