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

Alan Coopersmith alan.coopersmith at oracle.com
Sat Aug 10 13:55:08 PDT 2013


Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 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