From edae2fff72c5c7f76ad8b544bcebdef4c717d282 Mon Sep 17 00:00:00 2001 From: Fernando Monteiro Date: Mon, 18 Oct 2021 22:50:52 +0100 Subject: [PATCH] cogl: Remove cogl_material_set_color4ub This function is deprecated and must be replaced to the alternative. Part-of: --- cogl/cogl/deprecated/cogl-material-compat.c | 10 --------- cogl/cogl/deprecated/cogl-material-compat.h | 23 --------------------- 2 files changed, 33 deletions(-) diff --git a/cogl/cogl/deprecated/cogl-material-compat.c b/cogl/cogl/deprecated/cogl-material-compat.c index 5e5d3bb66..fe9107e5c 100644 --- a/cogl/cogl/deprecated/cogl-material-compat.c +++ b/cogl/cogl/deprecated/cogl-material-compat.c @@ -54,13 +54,3 @@ cogl_material_set_color (CoglMaterial *material, cogl_pipeline_set_color (COGL_PIPELINE (material), color); } -void -cogl_material_set_color4ub (CoglMaterial *material, - uint8_t red, - uint8_t green, - uint8_t blue, - uint8_t alpha) -{ - cogl_pipeline_set_color4ub (COGL_PIPELINE (material), - red, green, blue, alpha); -} diff --git a/cogl/cogl/deprecated/cogl-material-compat.h b/cogl/cogl/deprecated/cogl-material-compat.h index 79cf2a707..c0eac03f4 100644 --- a/cogl/cogl/deprecated/cogl-material-compat.h +++ b/cogl/cogl/deprecated/cogl-material-compat.h @@ -137,29 +137,6 @@ COGL_EXPORT void cogl_material_set_color (CoglMaterial *material, const CoglColor *color); -/** - * cogl_material_set_color4ub: - * @material: A #CoglMaterial object - * @red: The red component - * @green: The green component - * @blue: The blue component - * @alpha: The alpha component - * - * Sets the basic color of the material, used when no lighting is enabled. - * - * The default value is (0xff, 0xff, 0xff, 0xff) - * - * Since: 1.0 - * Deprecated: 1.16: Use cogl_pipeline_set_color4ub() instead - */ -COGL_DEPRECATED_FOR (cogl_pipeline_set_color4ub) -COGL_EXPORT void -cogl_material_set_color4ub (CoglMaterial *material, - uint8_t red, - uint8_t green, - uint8_t blue, - uint8_t alpha); - G_END_DECLS #endif /* __COGL_MATERIAL_H__ */