From: Mathias Fröhlich Date: Mon, 26 Dec 2011 20:45:56 +0000 (+0100) Subject: mesa: remove unused _mesa_copy_materials. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5584a8eb196b2fc71c34e7a3becb5bc7a06ecd7c;p=mesa.git mesa: remove unused _mesa_copy_materials. Signed-off-by: Mathias Froehlich --- diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c index 60daa89a33f..bf4bee3d696 100644 --- a/src/mesa/main/light.c +++ b/src/mesa/main/light.c @@ -624,22 +624,6 @@ _mesa_material_bitmask( struct gl_context *ctx, GLenum face, GLenum pname, -/* Perform a straight copy between materials. - */ -void -_mesa_copy_materials( struct gl_material *dst, - const struct gl_material *src, - GLuint bitmask ) -{ - int i; - - for (i = 0 ; i < MAT_ATTRIB_MAX ; i++) - if (bitmask & (1<Attrib[i], src->Attrib[i] ); -} - - - /* Update derived values following a change in ctx->Light.Material */ void diff --git a/src/mesa/main/light.h b/src/mesa/main/light.h index f42fbe6f506..9b66c7ed853 100644 --- a/src/mesa/main/light.h +++ b/src/mesa/main/light.h @@ -123,10 +123,6 @@ extern void _mesa_update_tnl_spaces( struct gl_context *ctx, GLuint new_state ); extern void _mesa_update_material( struct gl_context *ctx, GLuint bitmask ); -extern void _mesa_copy_materials( struct gl_material *dst, - const struct gl_material *src, - GLuint bitmask ); - extern void _mesa_update_color_material( struct gl_context *ctx, const GLfloat rgba[4] );