summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2012-02-12 16:07:19 +0000
committerDave Airlie <[email protected]>2012-02-12 16:09:50 +0000
commitb72d5767e3092016e0c2cfacaf38bb09d570955d (patch)
tree40528ba72a84b418dfb02e90b3912c40bf92e8d0 /src/mesa
parent449cae141e79fe233f9ce20b9f2b19132148774b (diff)
extensions: remove unused code.
Comparing an unsigned to < 0 is pointless. Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/extensions.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index b02a49de46e..d945124d220 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) {