Why should the compiler compile code that is not called/exported? that's a waste of processing power and therefore a waste of time
At best it should give you a warning that the function is not used, that's it
At best it should give you a warning that the function is not used, that's it
Oh, and the compiler may not know it's unused until it processes all files if it's a public function.