gldisplay: Remove unused code
authorCarlos Falgueras García <cfalgueras@fluendo.com>
Mon, 27 Feb 2023 07:23:38 +0000 (08:23 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 1 Mar 2023 09:23:35 +0000 (09:23 +0000)
The code related with environment variable `GST_GL_PLATFORM` is unused
since commit 33c60bdbf9ae2fd2e88099ad89ad836b8b78c2f5.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4091>

subprojects/gst-plugins-base/gst-libs/gst/gl/gstgldisplay.c

index bcc600e..bf220ed 100644 (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) {