Remove redundant code that has already been ported as classes.

This commit is contained in:
László Monda
2016-03-29 01:56:00 +02:00
parent 01e06573df
commit d25910b969

View File

@@ -59,12 +59,6 @@ function serializeKeyActions(keyActionsParam) {
function serializeKeyAction(keyAction) {
switch (keyAction.actionType) {
case 'none':
serializeNoneAction();
break;
case 'keystroke':
serializeKeystrokeAction(keyAction);
break;
case 'dualRoleKeystroke':
serializeDualRoleKeyAction(keyAction);
break;
@@ -85,16 +79,6 @@ function serializeKeyAction(keyAction) {
}
}
function serializeNoneAction() {
writer.writeUInt8(KEY_ACTION_ID_NONE);
writer.writeUInt8(NONE_ACTION_PADDING);
}
function serializeKeystrokeAction(keystrokeAction) {
writer.writeUInt8(keystrokeAction.scancode);
writer.writeUInt8(keystrokeAction.modifiers);
}
function serializeDualRoleKeyAction(dualRoleKeyAction) {
writer.writeUInt8({
mod : KEY_ACTION_ID_DUAL_ROLE_KEYSTROKE_MOD,