[mutter] cogl: Remove cogl_material_set_layer_combine_constant



commit a8cd59e029e6cd3f03595cb7a5765ff4adf578ee
Author: Fernando Monteiro <fr02monteiro gmail com>
Date:   Mon Oct 18 22:40:32 2021 +0100

    cogl: Remove cogl_material_set_layer_combine_constant
    
    This is unused anywhere.
    
    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 | 20 --------------------
 2 files changed, 30 deletions(-)
---
diff --git a/cogl/cogl/deprecated/cogl-material-compat.c b/cogl/cogl/deprecated/cogl-material-compat.c
index abc4067e06..5a8543367b 100644
--- a/cogl/cogl/deprecated/cogl-material-compat.c
+++ b/cogl/cogl/deprecated/cogl-material-compat.c
@@ -116,13 +116,3 @@ cogl_material_set_layer_combine (CoglMaterial *material,
                                           blend_string,
                                           error);
 }
-
-void
-cogl_material_set_layer_combine_constant (CoglMaterial    *material,
-                                          int              layer_index,
-                                          const CoglColor *constant)
-{
-  cogl_pipeline_set_layer_combine_constant (COGL_PIPELINE (material),
-                                            layer_index,
-                                            constant);
-}
diff --git a/cogl/cogl/deprecated/cogl-material-compat.h b/cogl/cogl/deprecated/cogl-material-compat.h
index 99a78e75fb..6f4dc58e8e 100644
--- a/cogl/cogl/deprecated/cogl-material-compat.h
+++ b/cogl/cogl/deprecated/cogl-material-compat.h
@@ -519,26 +519,6 @@ cogl_material_set_layer_combine (CoglMaterial *material,
                                 const char   *blend_string,
                                  GError      **error);
 
-/**
- * cogl_material_set_layer_combine_constant:
- * @material: A #CoglMaterial object
- * @layer_index: Specifies the layer you want to specify a constant used
- *               for texture combining
- * @constant: The constant color you want
- *
- * When you are using the 'CONSTANT' color source in a layer combine
- * description then you can use this function to define its value.
- *
- * Since: 1.0
- * Deprecated: 1.16: Use cogl_pipeline_set_layer_combine_constant()
- * instead
- */
-COGL_DEPRECATED_FOR (cogl_pipeline_set_layer_combine_constant)
-COGL_EXPORT void
-cogl_material_set_layer_combine_constant (CoglMaterial    *material,
-                                          int              layer_index,
-                                          const CoglColor *constant);
-
 G_END_DECLS
 
 #endif /* __COGL_MATERIAL_H__ */


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