Commit 5f2f3793 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove useless struct hotkey.i_action

parent a83cf23f
...@@ -207,7 +207,6 @@ VLC_EXPORT( vlc_key_t, vlc_GetActionId, (const char *psz_key) ) LIBVLC_USED; ...@@ -207,7 +207,6 @@ VLC_EXPORT( vlc_key_t, vlc_GetActionId, (const char *psz_key) ) LIBVLC_USED;
struct hotkey struct hotkey
{ {
const char *psz_action; const char *psz_action;
vlc_key_t i_action;
}; };
#endif #endif
...@@ -447,7 +447,6 @@ struct vlc_actions *vlc_InitActions (libvlc_int_t *libvlc) ...@@ -447,7 +447,6 @@ struct vlc_actions *vlc_InitActions (libvlc_int_t *libvlc)
} }
#endif #endif
keys->psz_action = actions[i].name; keys->psz_action = actions[i].name;
keys->i_action = actions[i].value;
keys++; keys++;
char name[12 + MAXACTION]; char name[12 + MAXACTION];
...@@ -458,7 +457,6 @@ struct vlc_actions *vlc_InitActions (libvlc_int_t *libvlc) ...@@ -458,7 +457,6 @@ struct vlc_actions *vlc_InitActions (libvlc_int_t *libvlc)
} }
keys->psz_action = NULL; keys->psz_action = NULL;
keys->i_action = 0;
libvlc->p_hotkeys = as->keys; libvlc->p_hotkeys = as->keys;
var_AddCallback (obj, "key-pressed", vlc_key_to_action, &as->map); var_AddCallback (obj, "key-pressed", vlc_key_to_action, &as->map);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment