mesa: remove ASSERT_NO_FEATURE macro
authorBrian Paul <brianp@vmware.com>
Sun, 23 Sep 2012 00:45:32 +0000 (18:45 -0600)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 16 Oct 2012 21:57:20 +0000 (14:57 -0700)
Was only used in one place.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/api_validate.c
src/mesa/main/mfeatures.h

index db9d14a4cc2d7281f1f99fa3414647b68adac817..6f025080038c534f43e49876cacf9c45d1b7dbb8 100644 (file)
@@ -148,7 +148,7 @@ check_valid_to_render(struct gl_context *ctx, const char *function)
       break;
 
    default:
-      ASSERT_NO_FEATURE();
+      assert(!"Invalid API value in check_valid_to_render()");
    }
 
    return GL_TRUE;
index 3162a0bbf9bd49a44821e0e749ae01f9202def40..829c0563bce6695f5fa01a8bb99df798bd212187 100644 (file)
@@ -35,9 +35,6 @@
 #define _HAVE_FULL_GL 1
 #endif
 
-/* assert that a feature is disabled and should never be used */
-#define ASSERT_NO_FEATURE() ASSERT(0)
-
 #ifndef FEATURE_ES1
 #define FEATURE_ES1 0
 #endif