From 6cd4489e5504f72099efc39daa72a6c3d63984a2 Mon Sep 17 00:00:00 2001 From: Fernando Monteiro Date: Mon, 18 Oct 2021 22:52:19 +0100 Subject: [PATCH] cogl: Remove cogl_material_set_color This is unused anywhere. Part-of: --- cogl/cogl/deprecated/cogl-material-compat.c | 7 ------- cogl/cogl/deprecated/cogl-material-compat.h | 22 --------------------- 2 files changed, 29 deletions(-) diff --git a/cogl/cogl/deprecated/cogl-material-compat.c b/cogl/cogl/deprecated/cogl-material-compat.c index fe9107e5c..e0db77eee 100644 --- a/cogl/cogl/deprecated/cogl-material-compat.c +++ b/cogl/cogl/deprecated/cogl-material-compat.c @@ -47,10 +47,3 @@ cogl_material_new (void) return COGL_MATERIAL (cogl_pipeline_new (ctx)); } -void -cogl_material_set_color (CoglMaterial *material, - const CoglColor *color) -{ - cogl_pipeline_set_color (COGL_PIPELINE (material), color); -} - diff --git a/cogl/cogl/deprecated/cogl-material-compat.h b/cogl/cogl/deprecated/cogl-material-compat.h index c0eac03f4..d9c69e3a7 100644 --- a/cogl/cogl/deprecated/cogl-material-compat.h +++ b/cogl/cogl/deprecated/cogl-material-compat.h @@ -115,28 +115,6 @@ COGL_DEPRECATED_FOR (cogl_pipeline_new) COGL_EXPORT CoglMaterial * cogl_material_new (void); -/** - * cogl_material_set_color: - * @material: A #CoglMaterial object - * @color: The components of the color - * - * Sets the basic color of the material, used when no lighting is enabled. - * - * Note that if you don't add any layers to the material then the color - * will be blended unmodified with the destination; the default blend - * expects premultiplied colors: for example, use (0.5, 0.0, 0.0, 0.5) for - * semi-transparent red. See cogl_color_premultiply(). - * - * The default value is (1.0, 1.0, 1.0, 1.0) - * - * Since: 1.0 - * Deprecated: 1.16: Use cogl_pipeline_set_color() instead - */ -COGL_DEPRECATED_FOR (cogl_pipeline_set_color) -COGL_EXPORT void -cogl_material_set_color (CoglMaterial *material, - const CoglColor *color); - G_END_DECLS #endif /* __COGL_MATERIAL_H__ */