gldisplay: Remove unused code

The code related with environment variable `GST_GL_PLATFORM` is unused
since commit 33c60bdbf9.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4090>
This commit is contained in:
Carlos Falgueras García 2023-02-27 08:23:38 +01:00 committed by GStreamer Marge Bot
parent 83576690b6
commit dafc024ed0

View file

@ -281,14 +281,8 @@ static GstGLDisplayType
gst_gl_display_type_from_environment (void)
{
const char *env = g_getenv ("GST_GL_WINDOW");
const char *platform = g_getenv ("GST_GL_PLATFORM");
init_debug ();
GST_INFO ("creating a display, user choice:%s (platform: %s)",
GST_STR_NULL (env), GST_STR_NULL (platform));
if (!env && !platform)
if (!env)
return GST_GL_DISPLAY_TYPE_ANY;
if (env) {