Remove unused variables

This commit is contained in:
Ryan Pavlik
2012-06-28 17:09:15 -05:00
parent 1a948b0c47
commit ee82f27792
3 changed files with 0 additions and 5 deletions

View File

@@ -51,7 +51,6 @@ static void classic_ctrl_pressed_buttons(struct classic_ctrl_t* cc, short now);
*/ */
#define HANDSHAKE_BYTES_USED 12 #define HANDSHAKE_BYTES_USED 12
int classic_ctrl_handshake(struct wiimote_t* wm, struct classic_ctrl_t* cc, byte* data, unsigned short len) { int classic_ctrl_handshake(struct wiimote_t* wm, struct classic_ctrl_t* cc, byte* data, unsigned short len) {
int i;
cc->btns = 0; cc->btns = 0;
cc->btns_held = 0; cc->btns_held = 0;

View File

@@ -51,7 +51,6 @@ static void guitar_hero_3_pressed_buttons(struct guitar_hero_3_t* gh3, short now
* @return Returns 1 if handshake was successful, 0 if not. * @return Returns 1 if handshake was successful, 0 if not.
*/ */
int guitar_hero_3_handshake(struct wiimote_t* wm, struct guitar_hero_3_t* gh3, byte* data, unsigned short len) { int guitar_hero_3_handshake(struct wiimote_t* wm, struct guitar_hero_3_t* gh3, byte* data, unsigned short len) {
int i;
/* /*
* The good fellows that made the Guitar Hero 3 controller * The good fellows that made the Guitar Hero 3 controller

View File

@@ -50,8 +50,6 @@
*/ */
#define HANDSHAKE_BYTES_USED 14 #define HANDSHAKE_BYTES_USED 14
int nunchuk_handshake(struct wiimote_t* wm, struct nunchuk_t* nc, byte* data, unsigned short len) { int nunchuk_handshake(struct wiimote_t* wm, struct nunchuk_t* nc, byte* data, unsigned short len) {
int i;
nc->btns = 0; nc->btns = 0;
nc->btns_held = 0; nc->btns_held = 0;
nc->btns_released = 0; nc->btns_released = 0;
@@ -132,7 +130,6 @@ void nunchuk_disconnected(struct nunchuk_t* nc) {
* @param msg The message specified in the event packet. * @param msg The message specified in the event packet.
*/ */
void nunchuk_event(struct nunchuk_t* nc, byte* msg) { void nunchuk_event(struct nunchuk_t* nc, byte* msg) {
int i;
/* get button states */ /* get button states */
nunchuk_pressed_buttons(nc, msg[5]); nunchuk_pressed_buttons(nc, msg[5]);