summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2019-10-24 16:30:58 -0400
committerAdam Jackson <ajax@redhat.com>2019-10-24 16:53:01 -0400
commitb294e62aedcc91486de94974ec0047d693e6373f (patch)
treeb02b8c48c82cd1b35470bdbae57ba916b374721d
parentc63f54b7a7c2aed397c4228946611418ebe00234 (diff)
downloadmutter-b294e62aedcc91486de94974ec0047d693e6373f.tar.gz
cogl: Remove unused cogl_glx_context_get_glx_context
https://gitlab.gnome.org/GNOME/mutter/merge_requests/885
-rw-r--r--cogl/cogl/cogl-glx.h20
-rw-r--r--cogl/cogl/winsys/cogl-winsys-glx.c8
2 files changed, 0 insertions, 28 deletions
diff --git a/cogl/cogl/cogl-glx.h b/cogl/cogl/cogl-glx.h
index 8a96f357f..b04656981 100644
--- a/cogl/cogl/cogl-glx.h
+++ b/cogl/cogl/cogl-glx.h
@@ -58,26 +58,6 @@
#include <GL/glx.h>
#include <cogl/cogl-types.h>
-G_BEGIN_DECLS
-
-/**
- * cogl_glx_context_get_glx_context:
- * @context: A #CoglContext pointer
- *
- * If you have done a runtime check to determine that Cogl is using
- * GLX internally then this API can be used to retrieve the GLXContext
- * handle that was setup internally. The result is undefined if Cogl
- * is not using GLX.
- *
- * Return value: The internally setup GLXContext handle.
- * Since: 1.18
- * Stability: unstable
- */
-GLXContext
-cogl_glx_context_get_glx_context (CoglContext *context);
-
-G_END_DECLS
-
/* The gobject introspection scanner seems to parse public headers in
* isolation which means we need to be extra careful about how we
* define and undefine __COGL_H_INSIDE__ used to detect when internal
diff --git a/cogl/cogl/winsys/cogl-winsys-glx.c b/cogl/cogl/winsys/cogl-winsys-glx.c
index 72e1073f6..d0c09d9bf 100644
--- a/cogl/cogl/winsys/cogl-winsys-glx.c
+++ b/cogl/cogl/winsys/cogl-winsys-glx.c
@@ -2607,11 +2607,3 @@ _cogl_winsys_glx_get_vtable (void)
{
return &_cogl_winsys_vtable;
}
-
-GLXContext
-cogl_glx_context_get_glx_context (CoglContext *context)
-{
- CoglGLXDisplay *glx_display = context->display->winsys;
-
- return glx_display->glx_context;
-}