[mutter] cogl: Remove cogl_material_set_blend_constant



commit f90f8f84c394e3b15969fae0261740fe0551d6b8
Author: Fernando Monteiro <fr02monteiro gmail com>
Date:   Mon Oct 18 22:48:57 2021 +0100

    cogl: Remove cogl_material_set_blend_constant
    
    This is unused anywhere.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2058>

 cogl/cogl/deprecated/cogl-material-compat.c |  7 -------
 cogl/cogl/deprecated/cogl-material-compat.h | 16 ----------------
 2 files changed, 23 deletions(-)
---
diff --git a/cogl/cogl/deprecated/cogl-material-compat.c b/cogl/cogl/deprecated/cogl-material-compat.c
index 3d78a1e075..c3d4956516 100644
--- a/cogl/cogl/deprecated/cogl-material-compat.c
+++ b/cogl/cogl/deprecated/cogl-material-compat.c
@@ -74,10 +74,3 @@ cogl_material_set_blend (CoglMaterial *material,
                                   blend_string,
                                   error);
 }
-
-void
-cogl_material_set_blend_constant (CoglMaterial *material,
-                                  const CoglColor *constant_color)
-{
-  cogl_pipeline_set_blend_constant (COGL_PIPELINE (material), constant_color);
-}
diff --git a/cogl/cogl/deprecated/cogl-material-compat.h b/cogl/cogl/deprecated/cogl-material-compat.h
index 47023f9f97..fc9de7a8dd 100644
--- a/cogl/cogl/deprecated/cogl-material-compat.h
+++ b/cogl/cogl/deprecated/cogl-material-compat.h
@@ -309,22 +309,6 @@ cogl_material_set_blend (CoglMaterial *material,
                          const char   *blend_string,
                          GError      **error);
 
-/**
- * cogl_material_set_blend_constant:
- * @material: A #CoglMaterial object
- * @constant_color: The constant color you want
- *
- * When blending is setup to reference a CONSTANT blend factor then
- * blending will depend on the constant set with this function.
- *
- * Since: 1.0
- * Deprecated: 1.16: Use cogl_pipeline_set_blend_constant() instead
- */
-COGL_DEPRECATED_FOR (cogl_pipeline_set_blend_constant)
-COGL_EXPORT void
-cogl_material_set_blend_constant (CoglMaterial *material,
-                                  const CoglColor *constant_color);
-
 G_END_DECLS
 
 #endif /* __COGL_MATERIAL_H__ */


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