From 67b7e06c4fa4e8dafb64d9f3eb976836d0cc5889 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Fri, 25 Apr 2008 19:39:48 +0300 Subject: [PATCH] XKB: Remove pointless macros These weren't even being used, which isn't overly surprising, given that they were already in the struct. Signed-off-by: Peter Hutterer --- include/xkbstr.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/xkbstr.h b/include/xkbstr.h index 214a5543c..5eebe41e3 100644 --- a/include/xkbstr.h +++ b/include/xkbstr.h @@ -59,10 +59,6 @@ typedef struct _XkbStateRec { unsigned char compat_lookup_mods; unsigned short ptr_buttons; } XkbStateRec,*XkbStatePtr; -#define XkbModLocks(s) ((s)->locked_mods) -#define XkbStateMods(s) ((s)->base_mods|(s)->latched_mods|XkbModLocks(s)) -#define XkbGroupLock(s) ((s)->locked_group) -#define XkbStateGroup(s) ((s)->base_group+(s)->latched_group+XkbGroupLock(s)) #define XkbStateFieldFromRec(s) XkbBuildCoreState((s)->lookup_mods,(s)->group) #define XkbGrabStateFromRec(s) XkbBuildCoreState((s)->grab_mods,(s)->group)