From 0a0cda4f04844cc209c0523ba59e8a2f47fc502e Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 16 Jan 2014 13:50:59 +0100 Subject: Slightly reduce code utilization by inlining HardwareSerail begin(baud) and operator bool() --- cores/arduino/HardwareSerial.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'cores/arduino/HardwareSerial.cpp') diff --git a/cores/arduino/HardwareSerial.cpp b/cores/arduino/HardwareSerial.cpp index f95fa5d..a5a3462 100644 --- a/cores/arduino/HardwareSerial.cpp +++ b/cores/arduino/HardwareSerial.cpp @@ -281,11 +281,6 @@ HardwareSerial::HardwareSerial( // Public Methods ////////////////////////////////////////////////////////////// -void HardwareSerial::begin(unsigned long baud) -{ - begin(baud, SERIAL_8N1); -} - void HardwareSerial::begin(unsigned long baud, byte config) { uint16_t baud_setting; @@ -402,10 +397,6 @@ size_t HardwareSerial::write(uint8_t c) return 1; } -HardwareSerial::operator bool() { - return true; -} - // Preinstantiate Objects ////////////////////////////////////////////////////// #if defined(UBRRH) && defined(UBRRL) -- cgit v1.2.3-18-g5258