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; -}