Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
delete unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tlyu committed Dec 9, 2023
1 parent 0032e7f commit 58138fe
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 362 deletions.
6 changes: 1 addition & 5 deletions src/BootKeyboard/BootKeyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static const uint8_t hybrid_keyboard_hid_descriptor_[] PROGMEM = {
D_END_COLLECTION,
};

BootKeyboard_::BootKeyboard_(uint8_t protocol_, uint8_t bootkb_only_) : PluggableUSBModule(1, 1, epType), default_protocol(protocol_), protocol(HID_REPORT_PROTOCOL), idle(0), leds(0), bootkb_only(bootkb_only) {
BootKeyboard_::BootKeyboard_(uint8_t bootkb_only_) : PluggableUSBModule(1, 1, epType), protocol(HID_REPORT_PROTOCOL), idle(0), leds(0), bootkb_only(bootkb_only) {
#ifdef ARCH_HAS_CONFIGURABLE_EP_SIZES
epType[0] = EP_TYPE_INTERRUPT_IN(USB_EP_SIZE);
#else
Expand Down Expand Up @@ -260,10 +260,6 @@ uint8_t BootKeyboard_::getProtocol() {
return protocol;
}

void BootKeyboard_::setProtocol(uint8_t protocol) {
// Do nothing. We don't want to send a format the host isn't expecting.
}

uint8_t BootKeyboard_::getBootOnly() {
return bootkb_only;
}
Expand Down
4 changes: 1 addition & 3 deletions src/BootKeyboard/BootKeyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ typedef union {

class BootKeyboard_ : public PluggableUSBModule {
public:
BootKeyboard_(uint8_t protocol_ = HID_REPORT_PROTOCOL, uint8_t bootkb_only_ = 0);
BootKeyboard_(uint8_t bootkb_only_ = 0);
size_t press(uint8_t k);
void begin();
void end();
Expand All @@ -81,12 +81,10 @@ class BootKeyboard_ : public PluggableUSBModule {

uint8_t getLeds();
uint8_t getProtocol();
void setProtocol(uint8_t protocol);

uint8_t getBootOnly();
void setBootOnly(uint8_t bootonly);

uint8_t default_protocol;
void onUSBReset();

protected:
Expand Down
1 change: 0 additions & 1 deletion src/KeyboardioHID.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ THE SOFTWARE.
#include "MultiReport/ConsumerControl.h"
#include "MultiReport/Gamepad.h"
#include "MultiReport/SystemControl.h"
#include "MultiReport/Keyboard.h"

#include "SingleReport/SingleAbsoluteMouse.h"

Expand Down
276 changes: 0 additions & 276 deletions src/MultiReport/Keyboard.cpp

This file was deleted.

Loading

0 comments on commit 58138fe

Please sign in to comment.