Skip to content

Commit 6079ef1

Browse files
committed
Remove empty HID_::begin method
Proposal to simplify the implementation by removing dead code.
1 parent 2ce8035 commit 6079ef1

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
@@ -228,8 +228,6 @@ HIDPowerDevice_::HIDPowerDevice_(void) {
228228
}
229229

230230
void HIDPowerDevice_::begin(void) {
231-
HID().begin();
232-
233231
// set string ID here
234232

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

0 commit comments

Comments
 (0)