From: Keith Whitwell Date: Tue, 14 Jul 2009 15:25:59 +0000 (+0100) Subject: mesa: remove dead code in _mesa_error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df5f7a676182dc9d1d8c9c995a009b49bac971e8;p=mesa.git mesa: remove dead code in _mesa_error Remove early and unused snprintf and where[] string. --- 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";