[mutter] clutter/stage: Remove unused function clutter_stage_ensure_redraw()
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/stage: Remove unused function clutter_stage_ensure_redraw()
- Date: Fri, 5 Jun 2020 21:55:42 +0000 (UTC)
commit 9fc428f2e7b18c5446d5e18b42b6df19f4482eda
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Tue Mar 31 09:21:38 2020 +0200
clutter/stage: Remove unused function clutter_stage_ensure_redraw()
Not used by anything, and redraws are eventually not going to be stage
global anyway.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1289
clutter/clutter/clutter-stage.c | 31 -------------------------------
clutter/clutter/clutter-stage.h | 2 --
2 files changed, 33 deletions(-)
---
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index 4ed5809453..e5bbbc7c98 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -3171,37 +3171,6 @@ _clutter_stage_maybe_setup_viewport (ClutterStage *stage,
#undef _DEG_TO_RAD
-/**
- * clutter_stage_ensure_redraw:
- * @stage: a #ClutterStage
- *
- * Ensures that @stage is redrawn
- *
- * This function should not be called by applications: it is
- * used when embedding a #ClutterStage into a toolkit with
- * another windowing system, like GTK+.
- *
- * Since: 1.0
- */
-void
-clutter_stage_ensure_redraw (ClutterStage *stage)
-{
- ClutterMasterClock *master_clock;
- ClutterStagePrivate *priv;
-
- g_return_if_fail (CLUTTER_IS_STAGE (stage));
-
- priv = stage->priv;
-
- if (!_clutter_stage_needs_update (stage))
- clutter_stage_schedule_update (stage);
-
- priv->redraw_pending = TRUE;
-
- master_clock = _clutter_master_clock_get_default ();
- _clutter_master_clock_start_running (master_clock);
-}
-
/**
* clutter_stage_is_redraw_queued: (skip)
*/
diff --git a/clutter/clutter/clutter-stage.h b/clutter/clutter/clutter-stage.h
index 5d0c1b4159..fb96ef4369 100644
--- a/clutter/clutter/clutter-stage.h
+++ b/clutter/clutter/clutter-stage.h
@@ -195,8 +195,6 @@ guchar * clutter_stage_read_pixels (ClutterStage
CLUTTER_EXPORT
void clutter_stage_ensure_viewport (ClutterStage *stage);
-CLUTTER_EXPORT
-void clutter_stage_ensure_redraw (ClutterStage *stage);
CLUTTER_EXPORT
gboolean clutter_stage_is_redraw_queued (ClutterStage *stage);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]