[mutter] cogl: Remove cogl_material_set_color4ub



commit edae2fff72c5c7f76ad8b544bcebdef4c717d282
Author: Fernando Monteiro <fr02monteiro gmail com>
Date:   Mon Oct 18 22:50:52 2021 +0100

    cogl: Remove cogl_material_set_color4ub
    
    This function is deprecated and must be replaced to the alternative.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2058>

 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 5e5d3bb66e..fe9107e5cd 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 79cf2a707b..c0eac03f43 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__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]