]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Missed removing a function
authorZach Nielsen <nielsen.zac@gmail.com>
Thu, 10 Nov 2016 21:47:07 +0000 (13:47 -0800)
committerZach Nielsen <nielsen.zac@gmail.com>
Thu, 10 Nov 2016 21:47:07 +0000 (13:47 -0800)
keyboards/planck/keymaps/zach/zach_common_functions.c
keyboards/preonic/keymaps/zach/zach_common_functions.c

index 1f907e6cbcaa1c461bbe7d2ff952fc2eea0c5bad..b77f2b24181ac1b748d1808b1f848d5849d00e10 100644 (file)
@@ -70,29 +70,6 @@ float unilin[][2]               = SONG(UNICODE_LINUX);
 #ifdef TAP_DANCE_ENABLE
 #define TAPPING_TERM 200
 
-uint8_t Lstate = 0, Rstate = 0;
-uint32_t Ltimer = 0, Rtimer = 0;
-uint32_t Ltimes[3], Rtimes[4];   // Ratio of tap times should be about 1.335 (L/R)
-void rhythm_parse(void){
-    int L = Ltimes[0] + Ltimes[1] + Ltimes[2];  // Start to end time
-    int R = Rtimes[0] + Rtimes[1] + Rtimes[2] + Rtimes[3];
-    if(abs(R-L) > 10){
-        tap(KC_N); tap(KC_O);
-        return;
-    } else {
-        L = (L / 3)*100;                    // Average time per tap * 100
-        R = (R / 4);
-        if(abs(abs(L/R)-133) > 1){
-            tap(KC_N); tap(KC_O);
-            tap(KC_P); tap(KC_E);
-            return;
-        } else {
-            tap(KC_O); tap(KC_K);
-            return;
-        }
-    }
-};
-
 void dance_raise_press(qk_tap_dance_state_t *state, void *user_data){// Called on each tap
   switch(state->count){      // Only turn the layer on once
     case 1:
index 1f907e6cbcaa1c461bbe7d2ff952fc2eea0c5bad..b77f2b24181ac1b748d1808b1f848d5849d00e10 100644 (file)
@@ -70,29 +70,6 @@ float unilin[][2]               = SONG(UNICODE_LINUX);
 #ifdef TAP_DANCE_ENABLE
 #define TAPPING_TERM 200
 
-uint8_t Lstate = 0, Rstate = 0;
-uint32_t Ltimer = 0, Rtimer = 0;
-uint32_t Ltimes[3], Rtimes[4];   // Ratio of tap times should be about 1.335 (L/R)
-void rhythm_parse(void){
-    int L = Ltimes[0] + Ltimes[1] + Ltimes[2];  // Start to end time
-    int R = Rtimes[0] + Rtimes[1] + Rtimes[2] + Rtimes[3];
-    if(abs(R-L) > 10){
-        tap(KC_N); tap(KC_O);
-        return;
-    } else {
-        L = (L / 3)*100;                    // Average time per tap * 100
-        R = (R / 4);
-        if(abs(abs(L/R)-133) > 1){
-            tap(KC_N); tap(KC_O);
-            tap(KC_P); tap(KC_E);
-            return;
-        } else {
-            tap(KC_O); tap(KC_K);
-            return;
-        }
-    }
-};
-
 void dance_raise_press(qk_tap_dance_state_t *state, void *user_data){// Called on each tap
   switch(state->count){      // Only turn the layer on once
     case 1: