Skip to content

Commit 22a75a7

Browse files
committed
Remove empty HID_::begin method
Proposal to simplify the implementation by removing dead code.
1 parent be6f702 commit 22a75a7

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

src/HID/HID.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,4 @@ HID_::HID_(void) : PluggableUSBModule(2, 1, epType),
263263
PluggableUSB().plug(this);
264264
}
265265

266-
int HID_::begin(void)
267-
{
268-
return 0;
269-
}
270-
271266
#endif /* if defined(USBCON) */

src/HID/HID.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ class HID_ : public PluggableUSBModule
114114
{
115115
public:
116116
HID_(void);
117-
int begin(void);
118117
int SendReport(uint16_t id, const void* data, int len);
119118
int SetFeature(uint16_t id, const void* data, int len);
120119
bool LockFeature(uint16_t id, bool lock);

src/HIDPowerDevice.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,6 @@ HIDPowerDevice_::HIDPowerDevice_(void) {
229229
}
230230

231231
void HIDPowerDevice_::begin(void) {
232-
HID().begin();
233-
234232
// set string ID here
235233

236234
HID().SetFeature(HID_PD_IPRODUCT, &bProduct, sizeof(bProduct));

0 commit comments

Comments
 (0)