[vlc-commits] Remove unused StringToKey()
Rémi Denis-Courmont
git at videolan.org
Thu Feb 10 18:51:08 CET 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Feb 10 19:43:07 2011 +0200| [2485777c9f9b84b4c8478c9d0ae199c10930e877] | committer: Rémi Denis-Courmont
Remove unused StringToKey()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2485777c9f9b84b4c8478c9d0ae199c10930e877
---
include/vlc_keys.h | 1 -
src/config/keys.c | 9 ---------
src/libvlccore.sym | 1 -
3 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/include/vlc_keys.h b/include/vlc_keys.h
index 1fc6a10..eae13be 100644
--- a/include/vlc_keys.h
+++ b/include/vlc_keys.h
@@ -87,7 +87,6 @@
#define KEY_MOUSEWHEELRIGHT 0x00F30000
VLC_EXPORT( char *, KeyToString, (uint_fast32_t i_key) ) LIBVLC_USED;
-VLC_EXPORT( uint_fast32_t, StringToKey, (char *psz_key) ) LIBVLC_USED;
typedef enum vlc_key {
ACTIONID_NONE = 0,
diff --git a/src/config/keys.c b/src/config/keys.c
index 637d4b1..eb2e42f 100644
--- a/src/config/keys.c
+++ b/src/config/keys.c
@@ -188,15 +188,6 @@ char *KeyToString (uint_fast32_t sym)
return NULL;
}
-uint_fast32_t StringToKey (char *name)
-{
- for (size_t i = 0; i < vlc_num_keys; i++)
- if (!strcmp (vlc_keys[i].psz_key_string, name))
- return vlc_keys[i].i_key_code;
-
- return cp_utf8 (name);
-}
-
uint_fast32_t ConfigStringToKey (const char *name)
{
uint_fast32_t mods = 0;
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index bd4a087..c63fc7a 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -680,4 +680,3 @@ xml_ReaderCreate
xml_ReaderDelete
xml_ReaderReset
KeyToString
-StringToKey
More information about the vlc-commits
mailing list