[mutter] cogl: Remove cogl_material_set_color
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] cogl: Remove cogl_material_set_color
- Date: Tue, 7 Dec 2021 16:02:29 +0000 (UTC)
commit 6cd4489e5504f72099efc39daa72a6c3d63984a2
Author: Fernando Monteiro <fr02monteiro gmail com>
Date: Mon Oct 18 22:52:19 2021 +0100
cogl: Remove cogl_material_set_color
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 | 22 ----------------------
2 files changed, 29 deletions(-)
---
diff --git a/cogl/cogl/deprecated/cogl-material-compat.c b/cogl/cogl/deprecated/cogl-material-compat.c
index fe9107e5cd..e0db77eee0 100644
--- a/cogl/cogl/deprecated/cogl-material-compat.c
+++ b/cogl/cogl/deprecated/cogl-material-compat.c
@@ -47,10 +47,3 @@ cogl_material_new (void)
return COGL_MATERIAL (cogl_pipeline_new (ctx));
}
-void
-cogl_material_set_color (CoglMaterial *material,
- const CoglColor *color)
-{
- cogl_pipeline_set_color (COGL_PIPELINE (material), color);
-}
-
diff --git a/cogl/cogl/deprecated/cogl-material-compat.h b/cogl/cogl/deprecated/cogl-material-compat.h
index c0eac03f43..d9c69e3a77 100644
--- a/cogl/cogl/deprecated/cogl-material-compat.h
+++ b/cogl/cogl/deprecated/cogl-material-compat.h
@@ -115,28 +115,6 @@ COGL_DEPRECATED_FOR (cogl_pipeline_new)
COGL_EXPORT CoglMaterial *
cogl_material_new (void);
-/**
- * cogl_material_set_color:
- * @material: A #CoglMaterial object
- * @color: The components of the color
- *
- * Sets the basic color of the material, used when no lighting is enabled.
- *
- * Note that if you don't add any layers to the material then the color
- * will be blended unmodified with the destination; the default blend
- * expects premultiplied colors: for example, use (0.5, 0.0, 0.0, 0.5) for
- * semi-transparent red. See cogl_color_premultiply().
- *
- * The default value is (1.0, 1.0, 1.0, 1.0)
- *
- * Since: 1.0
- * Deprecated: 1.16: Use cogl_pipeline_set_color() instead
- */
-COGL_DEPRECATED_FOR (cogl_pipeline_set_color)
-COGL_EXPORT void
-cogl_material_set_color (CoglMaterial *material,
- const CoglColor *color);
-
G_END_DECLS
#endif /* __COGL_MATERIAL_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]