From baf6a677dc01509d54a9c1ee33cce412003f13be Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Fri, 2 Mar 2012 22:34:14 +0200 Subject: [PATCH] Remove unused global type tokens Signed-off-by: Ran Benita --- src/xkbcomp/keytypes.c | 6 +++--- src/xkbcomp/symbols.c | 7 ------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/xkbcomp/keytypes.c b/src/xkbcomp/keytypes.c index fb1b5b4..98ae2ec 100644 --- a/src/xkbcomp/keytypes.c +++ b/src/xkbcomp/keytypes.c @@ -77,10 +77,10 @@ typedef struct _KeyTypesInfo VModInfo vmods; } KeyTypesInfo; -uint32_t tok_ONE_LEVEL; -uint32_t tok_TWO_LEVEL; +static uint32_t tok_ONE_LEVEL; +static uint32_t tok_TWO_LEVEL; static uint32_t tok_ALPHABETIC; -uint32_t tok_KEYPAD; +static uint32_t tok_KEYPAD; /***====================================================================***/ diff --git a/src/xkbcomp/symbols.c b/src/xkbcomp/symbols.c index decea71..9ddcefa 100644 --- a/src/xkbcomp/symbols.c +++ b/src/xkbcomp/symbols.c @@ -40,10 +40,6 @@ #include "misc.h" #include "alias.h" -extern uint32_t tok_ONE_LEVEL; -extern uint32_t tok_TWO_LEVEL; -extern uint32_t tok_KEYPAD; - /***====================================================================***/ #define RepeatYes 1 @@ -238,9 +234,6 @@ InitSymbolsInfo(SymbolsInfo * info, struct xkb_desc * xkb) { int i; - tok_ONE_LEVEL = xkb_intern_atom("ONE_LEVEL"); - tok_TWO_LEVEL = xkb_intern_atom("TWO_LEVEL"); - tok_KEYPAD = xkb_intern_atom("KEYPAD"); info->name = NULL; info->explicit_group = 0; info->errorCount = 0; -- 2.7.4