Remove empty fn_actions[]

This commit is contained in:
fauxpark 2019-01-11 09:50:14 +11:00 committed by Drashna Jaelre
parent d8eace35eb
commit 67adc29aa3
175 changed files with 2 additions and 712 deletions

View file

@ -187,10 +187,3 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
if (record->event.pressed) { } else { }; break;
} return MACRO_NONE;
};
/*
Later use:
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { }
enum function_id { };
const uint16_t PROGMEM fn_actions[] = { };
*/

View file

@ -66,38 +66,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______,_______,_______, _______, _______,_______,_______,_______),
};
/*
enum function_id {
SHIFT_ESC,
};
const uint16_t PROGMEM fn_actions[] = {
[0] = ACTION_FUNCTION(SHIFT_ESC),
};
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
static uint8_t shift_esc_shift_mask;
switch (id) {
case SHIFT_ESC:
shift_esc_shift_mask = get_mods()&MODS_CTRL_MASK;
if (record->event.pressed) {
if (shift_esc_shift_mask) {
add_key(KC_GRV);
send_keyboard_report();
} else {
add_key(KC_ESC);
send_keyboard_report();
}
} else {
if (shift_esc_shift_mask) {
del_key(KC_GRV);
send_keyboard_report();
} else {
del_key(KC_ESC);
send_keyboard_report();
}
}
break;
}
}
*/