[mutter] cogl/onscreen: Remove unused _cogl_onscreen_new()
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] cogl/onscreen: Remove unused _cogl_onscreen_new()
- Date: Fri, 16 Oct 2020 16:25:59 +0000 (UTC)
commit ffde1c0124c7ce33d15aea0c3da8b36d37f83247
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Mon Oct 12 23:30:58 2020 +0200
cogl/onscreen: Remove unused _cogl_onscreen_new()
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1496
cogl/cogl/cogl-onscreen-private.h | 3 ---
cogl/cogl/cogl-onscreen.c | 29 -----------------------------
2 files changed, 32 deletions(-)
---
diff --git a/cogl/cogl/cogl-onscreen-private.h b/cogl/cogl/cogl-onscreen-private.h
index 480ca50761..1059018800 100644
--- a/cogl/cogl/cogl-onscreen-private.h
+++ b/cogl/cogl/cogl-onscreen-private.h
@@ -75,9 +75,6 @@ struct _CoglOnscreen
void *winsys;
};
-CoglOnscreen *
-_cogl_onscreen_new (void);
-
COGL_EXPORT void
_cogl_framebuffer_winsys_update_size (CoglFramebuffer *framebuffer,
int width, int height);
diff --git a/cogl/cogl/cogl-onscreen.c b/cogl/cogl/cogl-onscreen.c
index ef996017ac..3b3f2585ba 100644
--- a/cogl/cogl/cogl-onscreen.c
+++ b/cogl/cogl/cogl-onscreen.c
@@ -87,35 +87,6 @@ _cogl_onscreen_init_from_template (CoglOnscreen *onscreen,
cogl_object_ref (framebuffer->config.swap_chain);
}
-/* XXX: While we still have backend in Clutter we need a dummy object
- * to represent the CoglOnscreen framebuffer that the backend
- * creates... */
-CoglOnscreen *
-_cogl_onscreen_new (void)
-{
- g_autofree CoglOnscreen *onscreen_ptr = g_new0 (CoglOnscreen, 1);
- CoglOnscreen *onscreen;
-
- _COGL_GET_CONTEXT (ctx, NULL);
-
- onscreen = g_steal_pointer (&onscreen_ptr);
- _cogl_framebuffer_init (COGL_FRAMEBUFFER (onscreen),
- ctx,
- COGL_FRAMEBUFFER_TYPE_ONSCREEN,
- 0x1eadbeef, /* width */
- 0x1eadbeef); /* height */
- /* NB: make sure to pass positive width/height numbers here
- * because otherwise we'll hit input validation assertions!*/
-
- _cogl_onscreen_init_from_template (onscreen, ctx->display->onscreen_template);
-
- COGL_FRAMEBUFFER (onscreen)->allocated = TRUE;
-
- /* XXX: Note we don't initialize onscreen->winsys in this case. */
-
- return _cogl_onscreen_object_new (onscreen);
-}
-
CoglOnscreen *
cogl_onscreen_new (CoglContext *ctx, int width, int height)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]