From ffde1c0124c7ce33d15aea0c3da8b36d37f83247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 12 Oct 2020 23:30:58 +0200 Subject: [PATCH] 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 480ca5076..105901880 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 ef996017a..3b3f2585b 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) {