From 446731114ca31580857479b4a7c74aacf9f6901e Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Wed, 14 Sep 2011 14:51:50 -0500 Subject: [PATCH] remove #if 0 code. --- src/events.c | 65 ---------------------------------------------------- 1 file changed, 65 deletions(-) diff --git a/src/events.c b/src/events.c index a5cdf31..9e287df 100644 --- a/src/events.c +++ b/src/events.c @@ -661,71 +661,6 @@ static void event_status(struct wiimote_t* wm, byte* msg) { } #endif - -#if 0 - switch(wm->expansion_state) - { - case 0: /* regular expansion detection */ - { - if(attachment && wm->exp.type != EXP_NONE) - { - wm->expansion_dattempts = 0; - wm->expansion_state++; - } - - else - { - /* give it another chance still */ - if(wm->expansion_dattempts < 10) - { - wm->expansion_dattempts++; - wiiuse_status(wm); - return; - } - - /* likely no attachment, give up and try M+ */ - else { - wm->expansion_dattempts = 0; - wiiuse_set_motion_plus(wm, WIIMOTE_IS_SET(wm, WIIMOTE_STATE_EXP) ? 2 : 1); - wm->expansion_state++; - } - } - - break; - } - - case 1: /* try to init Motion+ */ - { - if(attachment && wm->exp.type != EXP_NONE) - { - wm->expansion_dattempts = 0; - wm->expansion_state++; - } - - else - { - /* give it another chance still */ - if(wm->expansion_dattempts < 10) - { - wm->expansion_dattempts++; - wiiuse_status(wm); - return; - } - - else { - /* give up and move on */ - wm->expansion_state++; - } - } - break; - } - - default: - break; - } - -#endif - /* * From now on the remote will only send status packets. * We need to send a WIIMOTE_CMD_REPORT_TYPE packet to