From 3e5960b5a26e5a3e3c4407cfe95e8fe9cd6d1cc5 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 24 Oct 2019 16:31:43 -0400 Subject: [PATCH] cogl: Remove unused cogl_egl_context_get_egl_context https://gitlab.gnome.org/GNOME/mutter/merge_requests/885 --- cogl/cogl/cogl-egl.h | 20 -------------------- cogl/cogl/winsys/cogl-winsys-egl.c | 8 -------- 2 files changed, 28 deletions(-) diff --git a/cogl/cogl/cogl-egl.h b/cogl/cogl/cogl-egl.h index 8b4f17223..b9c163126 100644 --- a/cogl/cogl/cogl-egl.h +++ b/cogl/cogl/cogl-egl.h @@ -79,26 +79,6 @@ G_BEGIN_DECLS EGLDisplay cogl_egl_context_get_egl_display (CoglContext *context); -/** - * cogl_egl_context_get_egl_context: - * @context: A #CoglContext pointer - * - * If you have done a runtime check to determine that Cogl is using - * EGL internally then this API can be used to retrieve the EGLContext - * handle that was setup internally. The result is undefined if Cogl - * is not using EGL. - * - * Note: The current window system backend can be checked using - * cogl_renderer_get_winsys_id(). - * - * Return value: The internally setup EGLDisplay handle. - * Since: 1.18 - * Stability: unstable - */ -EGLContext -cogl_egl_context_get_egl_context (CoglContext *context); - - G_END_DECLS /* The gobject introspection scanner seems to parse public headers in diff --git a/cogl/cogl/winsys/cogl-winsys-egl.c b/cogl/cogl/winsys/cogl-winsys-egl.c index 03f16fd86..99dcb8bf3 100644 --- a/cogl/cogl/winsys/cogl-winsys-egl.c +++ b/cogl/cogl/winsys/cogl-winsys-egl.c @@ -947,11 +947,3 @@ cogl_egl_context_get_egl_display (CoglContext *context) return egl_renderer->edpy; } - -EGLContext -cogl_egl_context_get_egl_context (CoglContext *context) -{ - CoglDisplayEGL *egl_display = context->display->winsys; - - return egl_display->egl_context; -}