From fd1e397a3e299356561a20746bb0cfbe5b90d88f Mon Sep 17 00:00:00 2001 From: Florian Fleissner Date: Thu, 5 Dec 2019 17:00:37 +0100 Subject: [PATCH] Removed inaccessible members Those members cause compiler warnings when using recent compilers. The members are unused and can be safely removed as they are inaccessible to derived classes. Signed-off-by: Florian Fleissner --- virtual/cores/arduino/PluggableUSB.h | 35 ++++++++++++---------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/virtual/cores/arduino/PluggableUSB.h b/virtual/cores/arduino/PluggableUSB.h index 51a6a25..d0416d1 100644 --- a/virtual/cores/arduino/PluggableUSB.h +++ b/virtual/cores/arduino/PluggableUSB.h @@ -63,26 +63,21 @@ class PluggableUSBModule { }; class PluggableUSB_ { - public: - PluggableUSB_() {} - bool plug(PluggableUSBModule *node) { - return true; - } - int getInterface(uint8_t *interfaceCount) { - return 1; - } - int getDescriptor(USBSetup &setup) { - return 1; - } - bool setup(USBSetup &setup) { - return true; - } - void getShortName(char *iSerialNum) {} - - private: - uint8_t lastIf; - uint8_t lastEp; - PluggableUSBModule *rootNode; + public: + PluggableUSB_() {} + bool plug(PluggableUSBModule *node) { + return true; + } + int getInterface(uint8_t *interfaceCount) { + return 1; + } + int getDescriptor(USBSetup &setup) { + return 1; + } + bool setup(USBSetup &setup) { + return true; + } + void getShortName(char *iSerialNum) {} }; // Replacement for global singleton.