From b65f33348352771f5c9fbe4c8eb906aeee2d3922 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Thu, 22 Jun 2023 13:02:27 +0200 Subject: [PATCH] clutter: Drop cairo_clear helper It is used once in gnome-shell, so it is better to just move it content there. Part-of: --- clutter/clutter/clutter-cairo.c | 50 --------------------------------- clutter/clutter/clutter-cairo.h | 3 -- clutter/clutter/meson.build | 1 - 3 files changed, 54 deletions(-) delete mode 100644 clutter/clutter/clutter-cairo.c diff --git a/clutter/clutter/clutter-cairo.c b/clutter/clutter/clutter-cairo.c deleted file mode 100644 index cb8d23258..000000000 --- a/clutter/clutter/clutter-cairo.c +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Clutter. - * - * An OpenGL based 'interactive canvas' library. - * - * Copyright (C) 2012 Intel Corporation - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - */ - -/** - * SECTION:clutter-cairo - * @Title: Cairo integration - * @Short_Description: Functions for interoperating with Cairo - * - * Clutter provides some utility functions for using Cairo. - */ - -#include "clutter/clutter-build-config.h" - -#include "clutter/clutter-cairo.h" -#include "clutter/clutter-color.h" - -/** - * clutter_cairo_clear: - * @cr: a Cairo context - * - * Utility function to clear a Cairo context. - */ -void -clutter_cairo_clear (cairo_t *cr) -{ - cairo_save (cr); - - cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR); - cairo_paint (cr); - - cairo_restore (cr); -} diff --git a/clutter/clutter/clutter-cairo.h b/clutter/clutter/clutter-cairo.h index 9ba2b19ea..d24ad0e78 100644 --- a/clutter/clutter/clutter-cairo.h +++ b/clutter/clutter/clutter-cairo.h @@ -47,7 +47,4 @@ G_BEGIN_DECLS #define CLUTTER_CAIRO_FORMAT_ARGB32 (COGL_PIXEL_FORMAT_ARGB_8888_PRE) #endif -CLUTTER_EXPORT -void clutter_cairo_clear (cairo_t *cr); - G_END_DECLS diff --git a/clutter/clutter/meson.build b/clutter/clutter/meson.build index 97b2f732c..837951f27 100644 --- a/clutter/clutter/meson.build +++ b/clutter/clutter/meson.build @@ -110,7 +110,6 @@ clutter_sources = [ 'clutter-blur-effect.c', 'clutter-box-layout.c', 'clutter-brightness-contrast-effect.c', - 'clutter-cairo.c', 'clutter-canvas.c', 'clutter-child-meta.c', 'clutter-click-action.c',