Mesa (master): glsl: Remove unused ARRAY_SIZE macro.
Kenneth Graunke
kwg at kemper.freedesktop.org
Fri Oct 29 18:46:21 UTC 2010
Module: Mesa
Branch: master
Commit: cff1aeea10c6d8520cbb17381d81a684b2e9408b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cff1aeea10c6d8520cbb17381d81a684b2e9408b
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Fri Oct 29 11:42:22 2010 -0700
glsl: Remove unused ARRAY_SIZE macro.
It's also equivalent to Elements(...) which is already used elsewhere.
---
src/glsl/ir.h | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index 06198e4..80e0f67 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -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
*
More information about the mesa-commit
mailing list