glsl: Remove unused ARRAY_SIZE macro.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 29 Oct 2010 18:42:22 +0000 (11:42 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 29 Oct 2010 18:43:30 +0000 (11:43 -0700)
It's also equivalent to Elements(...) which is already used elsewhere.

src/glsl/ir.h

index 06198e4f3f619a2f29cabc6623f1ebb4c9281aa3..80e0f67d6d82624468f4aa27abdb1101c9028959 100644 (file)
@@ -37,10 +37,6 @@ extern "C" {
 #include "ir_visitor.h"
 #include "ir_hierarchical_visitor.h"
 
-#ifndef ARRAY_SIZE
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
-#endif
-
 /**
  * \defgroup IR Intermediate representation nodes
  *