[vlc-commits] Remove useless struct hotkey.i_action

Rémi Denis-Courmont git at videolan.org
Sat Feb 19 15:13:51 CET 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Feb 19 16:13:07 2011 +0200| [5f2f37933f222c020698eaa49b77cfb3ab4174d7] | committer: Rémi Denis-Courmont

Remove useless struct hotkey.i_action

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5f2f37933f222c020698eaa49b77cfb3ab4174d7
---

 include/vlc_keys.h |    1 -
 src/config/keys.c  |    2 --
 2 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/include/vlc_keys.h b/include/vlc_keys.h
index 8ec6366..01c59b0 100644
--- a/include/vlc_keys.h
+++ b/include/vlc_keys.h
@@ -207,7 +207,6 @@ VLC_EXPORT( vlc_key_t, vlc_GetActionId, (const char *psz_key) ) LIBVLC_USED;
 struct hotkey
 {
     const char *psz_action;
-    vlc_key_t i_action;
 };
 
 #endif
diff --git a/src/config/keys.c b/src/config/keys.c
index b0191b1..b51293b 100644
--- a/src/config/keys.c
+++ b/src/config/keys.c
@@ -447,7 +447,6 @@ struct vlc_actions *vlc_InitActions (libvlc_int_t *libvlc)
         }
 #endif
         keys->psz_action = actions[i].name;
-        keys->i_action = actions[i].value;
         keys++;
 
         char name[12 + MAXACTION];
@@ -458,7 +457,6 @@ struct vlc_actions *vlc_InitActions (libvlc_int_t *libvlc)
     }
 
     keys->psz_action = NULL;
-    keys->i_action = 0;
 
     libvlc->p_hotkeys = as->keys;
     var_AddCallback (obj, "key-pressed", vlc_key_to_action, &as->map);



More information about the vlc-commits mailing list