From 20564fb1d0f26ff971c8b77bb57572a527e1a8df Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Tue, 20 Dec 2011 17:08:07 -0500 Subject: [PATCH] Revert "changed Keyboard write() method to type(). Made write() an alias for type() to allow subclassing by Stream." This reverts commit de1d5fc0cb82874c0dcb766c5fb27ab36c5cb32c. --- hardware/arduino/cores/arduino/HID.cpp | 5 ----- hardware/arduino/cores/arduino/USBAPI.h | 1 - 2 files changed, 6 deletions(-) diff --git a/hardware/arduino/cores/arduino/HID.cpp b/hardware/arduino/cores/arduino/HID.cpp index d69522fb5..8ed156666 100644 --- a/hardware/arduino/cores/arduino/HID.cpp +++ b/hardware/arduino/cores/arduino/HID.cpp @@ -407,11 +407,6 @@ const uint8_t _asciimap[128] = uint8_t USBPutChar(uint8_t c); size_t Keyboard_::write(uint8_t c) -{ - type(c); -} - -size_t Keyboard_::type(uint8_t c) { // Keydown { diff --git a/hardware/arduino/cores/arduino/USBAPI.h b/hardware/arduino/cores/arduino/USBAPI.h index 326fd6cef..1772c3c68 100644 --- a/hardware/arduino/cores/arduino/USBAPI.h +++ b/hardware/arduino/cores/arduino/USBAPI.h @@ -105,7 +105,6 @@ private: public: Keyboard_(); virtual size_t write(uint8_t); - virtual size_t type(uint8_t); }; extern Keyboard_ Keyboard;