[PATCHv3 01/14] dix: remove unused debug code
Peter Hutterer
peter.hutterer at who-t.net
Sun Apr 3 16:03:10 PDT 2011
On Tue, Mar 29, 2011 at 06:08:07PM +0300, Tiago Vignatti wrote:
> Signed-off-by: Tiago Vignatti <tiago.vignatti at nokia.com>
> Reviewed-by: Mikhail Gusarov <dottedmag at dottedmag.net>
> ---
> dix/dixfonts.c | 12 ------------
> 1 files changed, 0 insertions(+), 12 deletions(-)
>
> diff --git a/dix/dixfonts.c b/dix/dixfonts.c
> index d8f1529..316a8a5 100644
> --- a/dix/dixfonts.c
> +++ b/dix/dixfonts.c
> @@ -66,10 +66,6 @@ Equipment Corporation.
> #include "dixfont.h"
> #include "xace.h"
>
> -#ifdef DEBUG
> -#include <stdio.h>
> -#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)
> --
> 1.7.0.4
Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net> for the series
Cheers,
Peter
More information about the xorg-devel
mailing list