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

Matthieu Herrb matthieu.herrb at laas.fr
Sun Aug 11 05:25:07 PDT 2013


On Sat, Aug 10, 2013 at 01:55:08PM -0700, Alan Coopersmith wrote:
> 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
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel

-- 
Matthieu Herrb


More information about the xorg-devel mailing list