Skip to content

Commit 367a882

Browse files
committed
Remove unreferenced and empty HIDPowerDevice_::end
Proposal to simplify the implementation by removing dead code.
1 parent 21a2889 commit 367a882

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/HIDPowerDevice.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,6 @@ void HIDPowerDevice_::setSerial(const char* s) {
247247
HID().setSerial(s);
248248
}
249249

250-
void HIDPowerDevice_::end(void) {
251-
}
252-
253250
int HIDPowerDevice_::sendDate(uint16_t id, uint16_t year, uint8_t month, uint8_t day) {
254251
uint16_t bval = (year - 1980)*512 + month * 32 + day;
255252
return HID().SendReport(id, &bval, sizeof (bval));

src/HIDPowerDevice.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@ class HIDPowerDevice_ {
108108

109109
void setSerial(const char*);
110110

111-
112-
void end(void);
113-
114111
int sendDate(uint16_t id, uint16_t year, uint8_t month, uint8_t day);
115112
int sendReport(uint16_t id, const void* bval, int len);
116113

0 commit comments

Comments
 (0)