From 70bfc2f3300613119da419cbd6724e443037b1b0 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 24 Jun 2013 11:23:35 +0200 Subject: Removed unused Stream interface from Bridge class --- libraries/Bridge/Bridge.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'libraries/Bridge/Bridge.h') diff --git a/libraries/Bridge/Bridge.h b/libraries/Bridge/Bridge.h index f606492..3aabeff 100644 --- a/libraries/Bridge/Bridge.h +++ b/libraries/Bridge/Bridge.h @@ -22,7 +22,7 @@ #include #include -class BridgeClass: public Stream { +class BridgeClass { public: BridgeClass(Stream &_stream); void begin(); @@ -40,17 +40,6 @@ public: unsigned int get(const char *key, char *value, unsigned int maxlen) { get(key, reinterpret_cast(value), maxlen); } - // Print methods (proxy to "stream" object) [CM: are these really needed?] - size_t write(uint8_t c) { return stream.write(c); } - size_t write(const uint8_t *buffer, size_t size) - { return stream.write(buffer, size); } - - // Stream methods (proxy to "stream" object) [CM: are these really needed?] - int available() { return stream.available(); } - int read() { return stream.read(); } - int peek() { return stream.peek(); } - void flush() { stream.flush(); } - // Trasnfer a frame (with error correction and response) uint16_t transfer(const uint8_t *buff1, uint16_t len1, const uint8_t *buff2, uint16_t len2, -- cgit v1.2.3-18-g5258