Remove redundant code that has already been ported as classes.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user