There used to be a different API for accessing the serial port. That code was left for backwards compatibility purposes. If you don't need that backwards compatibility you can remove that code and save the space.
Thank you, that's what I wanted to know. I take it this is the "Old serial library (deprecated)" ?
- beginSerial(speed)
- serialWrite(c)
- int serialAvailable()- ...