Skip to content

Commit ea656f1

Browse files
committed
HID: Remove empty HID_::begin() method to simplify
This method doesn't do anything, so I'm proposing to remove it to make the class easier to understand for new developers.
1 parent 321fca0 commit ea656f1

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

Diff for: libraries/HID/src/HID.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,4 @@ HID_::HID_(void) : PluggableUSBModule(1, 1, epType),
154154
PluggableUSB().plug(this);
155155
}
156156

157-
int HID_::begin(void)
158-
{
159-
return 0;
160-
}
161-
162157
#endif /* if defined(USBCON) */

Diff for: libraries/HID/src/HID.h

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ class HID_ : public PluggableUSBModule
9292
{
9393
public:
9494
HID_(void);
95-
int begin(void);
9695
int SendReport(uint8_t id, const void* data, int len);
9796
void AppendDescriptor(HIDSubDescriptor* node);
9897

0 commit comments

Comments
 (0)