summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2012-10-10 17:04:33 -0700
committerKenneth Graunke <[email protected]>2012-10-16 11:35:24 -0700
commiteda4a4ae81481c4b0a300ad91e607a18a8d81cb3 (patch)
tree6122a0e1f7954f9a06bc6dd938b3b248beb5ea1e /src
parentf7cfe3fc708ce7d90699ec3144691371740d62e6 (diff)
mesa: Remove dead _mesa_add_varying() function.
Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/program/prog_parameter.c21
-rw-r--r--src/mesa/program/prog_parameter.h5
2 files changed, 0 insertions, 26 deletions
diff --git a/src/mesa/program/prog_parameter.c b/src/mesa/program/prog_parameter.c
index 852af714b96..f1cc98980d3 100644
--- a/src/mesa/program/prog_parameter.c
+++ b/src/mesa/program/prog_parameter.c
@@ -292,27 +292,6 @@ _mesa_add_unnamed_constant(struct gl_program_parameter_list *paramList,
}
/**
- * Add parameter representing a varying variable.
- */
-GLint
-_mesa_add_varying(struct gl_program_parameter_list *paramList,
- const char *name, GLuint size, GLenum datatype)
-{
- GLint i = _mesa_lookup_parameter_index(paramList, -1, name);
- if (i >= 0 && paramList->Parameters[i].Type == PROGRAM_VARYING) {
- /* already in list */
- return i;
- }
- else {
- /*assert(size == 4);*/
- i = _mesa_add_parameter(paramList, PROGRAM_VARYING, name,
- size, datatype, NULL, NULL);
- return i;
- }
-}
-
-
-/**
* Add parameter representing a vertex program attribute.
* \param size size of attribute (in floats), may be -1 if unknown
* \param attrib the attribute index, or -1 if unknown
diff --git a/src/mesa/program/prog_parameter.h b/src/mesa/program/prog_parameter.h
index 2d98802edd9..4ef7a2c213a 100644
--- a/src/mesa/program/prog_parameter.h
+++ b/src/mesa/program/prog_parameter.h
@@ -135,11 +135,6 @@ _mesa_add_unnamed_constant(struct gl_program_parameter_list *paramList,
GLuint *swizzleOut);
extern GLint
-_mesa_add_varying(struct gl_program_parameter_list *paramList,
- const char *name, GLuint size, GLenum datatype,
- GLbitfield flags);
-
-extern GLint
_mesa_add_attribute(struct gl_program_parameter_list *paramList,
const char *name, GLint size, GLenum datatype, GLint attrib);