Skip to content

Commit 5cc9595

Browse files
committed
Remove empty HID_::begin method
Proposal to simplify the implementation by removing dead code.
1 parent 1aba0eb commit 5cc9595

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
@@ -274,9 +274,4 @@ HID_::HID_(void) : PluggableUSBModule(2, 1, epType),
274274
PluggableUSB().plug(this);
275275
}
276276

277-
int HID_::begin(void)
278-
{
279-
return 0;
280-
}
281-
282277
#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)