From df5f7a676182dc9d1d8c9c995a009b49bac971e8 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 14 Jul 2009 16:25:59 +0100 Subject: mesa: remove dead code in _mesa_error Remove early and unused snprintf and where[] string. --- src/mesa/main/imports.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index b0e7d9d4835..c35dcf5bd24 100644 --- a/src/mesa/main/imports.c +++ b/src/mesa/main/imports.c @@ -1102,14 +1102,8 @@ _mesa_error( GLcontext *ctx, GLenum error, const char *fmtString, ... ) } if (debug) { - va_list args; - char where[MAXSTRING]; const char *errstr; - va_start( args, fmtString ); - vsnprintf( where, MAXSTRING, fmtString, args ); - va_end( args ); - switch (error) { case GL_NO_ERROR: errstr = "GL_NO_ERROR"; -- cgit v1.2.3