From a8cd59e029e6cd3f03595cb7a5765ff4adf578ee Mon Sep 17 00:00:00 2001 From: Fernando Monteiro Date: Mon, 18 Oct 2021 22:40:32 +0100 Subject: [PATCH] cogl: Remove cogl_material_set_layer_combine_constant This is unused anywhere. Part-of: --- 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 abc4067e0..5a8543367 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 99a78e75f..6f4dc58e8 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__ */