Mesa (mesa_7_5_branch): mesa: remove dead code in _mesa_error
Keith Whitwell
keithw at kemper.freedesktop.org
Wed Jul 15 12:32:27 UTC 2009
Module: Mesa
Branch: mesa_7_5_branch
Commit: df5f7a676182dc9d1d8c9c995a009b49bac971e8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=df5f7a676182dc9d1d8c9c995a009b49bac971e8
Author: Keith Whitwell <keithw at vmware.com>
Date: Tue Jul 14 16:25:59 2009 +0100
mesa: remove dead code in _mesa_error
Remove early and unused snprintf and where[] string.
---
src/mesa/main/imports.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index b0e7d9d..c35dcf5 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";
More information about the mesa-commit
mailing list