Skip to content

Commit 2cfe262

Browse files
committed
Remove unreferenced and empty HIDPowerDevice_::end
Proposal to simplify the implementation by removing dead code.
1 parent cef7b0d commit 2cfe262

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

src/HIDPowerDevice.cpp

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

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

src/HIDPowerDevice.h

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

119119
void setSerial(const char*);
120120

121-
122-
void end(void);
123-
124121
int sendDate(uint16_t id, uint16_t year, uint8_t month, uint8_t day);
125122
int sendReport(uint16_t id, const void* bval, int len);
126123

0 commit comments

Comments
 (0)