[PATCH:libX11 12/22] Delete unused XKB_INSURE_SIZE macro from XKBlibint.h

Alan Coopersmith alan.coopersmith at oracle.com
Mon Aug 12 00:04:03 PDT 2013


Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Reviewed-by: Matthieu Herrb <matthieu.herrb at laas.fr>
---
 src/xkb/XKBlibint.h |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/xkb/XKBlibint.h b/src/xkb/XKBlibint.h
index 7b41c3b..6c85558 100644
--- a/src/xkb/XKBlibint.h
+++ b/src/xkb/XKBlibint.h
@@ -106,12 +106,6 @@ typedef struct _XkbInfoRec {
 	/*
 	 * Handy helper macros
 	 */
-#define	XKB_INSURE_SIZE(f,t,nNum,oNum)	{\
-	if ((f)==NULL)	\
-	     (f)=(t *)Xmalloc(sizeof(t)*(nNum));\
-	else if ((nNum)<(oNum))\
-	     (f)=(t *)Xrealloc((f),sizeof(t)*(nNum));\
-	}
 
 typedef struct _XkbReadBuffer {
 	int	 error;
-- 
1.7.9.2



More information about the xorg-devel mailing list