mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
HIDUniversal: Remove unused member and methods
With the comparing buffer/removing duplicates functionality gone, prevBuf, BuffersIdentical() and SaveBuffer() aren't used anymore.
This commit is contained in:
parent
f66d02d608
commit
323de96d6e
2 changed files with 0 additions and 17 deletions
|
@ -67,8 +67,6 @@ void HIDUniversal::Initialize() {
|
|||
bNumIface = 0;
|
||||
bConfNum = 0;
|
||||
pollInterval = 0;
|
||||
|
||||
ZeroMemory(constBuffLen, prevBuf);
|
||||
}
|
||||
|
||||
bool HIDUniversal::SetReportParser(uint8_t id, HIDReportParser *prs) {
|
||||
|
@ -361,23 +359,11 @@ uint8_t HIDUniversal::Release() {
|
|||
return 0;
|
||||
}
|
||||
|
||||
bool HIDUniversal::BuffersIdentical(uint8_t len, uint8_t *buf1, uint8_t *buf2) {
|
||||
for(uint8_t i = 0; i < len; i++)
|
||||
if(buf1[i] != buf2[i])
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
void HIDUniversal::ZeroMemory(uint8_t len, uint8_t *buf) {
|
||||
for(uint8_t i = 0; i < len; i++)
|
||||
buf[i] = 0;
|
||||
}
|
||||
|
||||
void HIDUniversal::SaveBuffer(uint8_t len, uint8_t *src, uint8_t *dest) {
|
||||
for(uint8_t i = 0; i < len; i++)
|
||||
dest[i] = src[i];
|
||||
}
|
||||
|
||||
uint8_t HIDUniversal::Poll() {
|
||||
uint8_t rcode = 0;
|
||||
|
||||
|
|
|
@ -51,14 +51,11 @@ class HIDUniversal : public USBHID {
|
|||
bool bPollEnable; // poll enable flag
|
||||
|
||||
static const uint16_t constBuffLen = 64; // event buffer length
|
||||
uint8_t prevBuf[constBuffLen]; // previous event buffer
|
||||
|
||||
void Initialize();
|
||||
HIDInterface* FindInterface(uint8_t iface, uint8_t alt, uint8_t proto);
|
||||
|
||||
void ZeroMemory(uint8_t len, uint8_t *buf);
|
||||
bool BuffersIdentical(uint8_t len, uint8_t *buf1, uint8_t *buf2);
|
||||
void SaveBuffer(uint8_t len, uint8_t *src, uint8_t *dest);
|
||||
|
||||
protected:
|
||||
EpInfo epInfo[totalEndpoints];
|
||||
|
|
Loading…
Reference in a new issue