Mesa (master): extensions: remove unused code.
Dave Airlie
airlied at kemper.freedesktop.org
Sun Feb 12 16:10:12 UTC 2012
Module: Mesa
Branch: master
Commit: b72d5767e3092016e0c2cfacaf38bb09d570955d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b72d5767e3092016e0c2cfacaf38bb09d570955d
Author: Dave Airlie <airlied at redhat.com>
Date: Sun Feb 12 16:07:19 2012 +0000
extensions: remove unused code.
Comparing an unsigned to < 0 is pointless.
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/mesa/main/extensions.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index b02a49d..d945124 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -931,9 +931,6 @@ _mesa_get_enabled_extension(struct gl_context *ctx, GLuint index)
size_t n;
const struct extension *i;
- if (index < 0)
- return NULL;
-
base = (GLboolean*) &ctx->Extensions;
n = 0;
for (i = extension_table; i->name != 0; ++i) {
More information about the mesa-commit
mailing list