From f1a80e1268fa4d235a411a8cdf20b4f13eafcde0 Mon Sep 17 00:00:00 2001 From: Tiago Vignatti Date: Wed, 23 Mar 2011 18:06:51 +0200 Subject: dix: remove unused debug code Signed-off-by: Tiago Vignatti Reviewed-by: Mikhail Gusarov Reviewed-by: Nicolas Peninguy Reviewed-by: Peter Hutterer --- dix/dixfonts.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/dix/dixfonts.c b/dix/dixfonts.c index d8f15290b..316a8a545 100644 --- a/dix/dixfonts.c +++ b/dix/dixfonts.c @@ -66,10 +66,6 @@ Equipment Corporation. #include "dixfont.h" #include "xace.h" -#ifdef DEBUG -#include -#endif - #ifdef XF86BIGFONT #include "xf86bigfontsrv.h" #endif @@ -391,14 +387,6 @@ OpenFont(ClientPtr client, XID fid, Mask flags, unsigned lenfname, char *pfontna int i; FontPtr cached = (FontPtr)0; -#ifdef FONTDEBUG - char *f; - f = malloc(lenfname + 1); - memmove(f, pfontname, lenfname); - f[lenfname] = '\0'; - ErrorF("[dix] OpenFont: fontname is \"%s\"\n", f); - free(f); -#endif if (!lenfname || lenfname > XLFDMAXFONTNAMELEN) return BadName; if (patternCache) -- cgit v1.2.3