Remove unused global type tokens Signed-off-by: Ran Benita <ran234@gmail.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
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;