changeset 33462:09b7b05fadfa

Remove commented and disabled code. XDisplayName() does look in the environment for DISPLAY, if mDisplayName isn't given.
author ib
date Fri, 03 Jun 2011 14:26:56 +0000
parents 175e9084ee62
children 47b5846b20b6
files libvo/x11_common.c
diffstat 1 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/x11_common.c	Fri Jun 03 14:25:43 2011 +0000
+++ b/libvo/x11_common.c	Fri Jun 03 14:26:56 2011 +0000
@@ -408,8 +408,6 @@
     int depth, bpp;
     unsigned int mask;
 
-// char    * DisplayName = ":0.0";
-// Display * mDisplay;
     XImage *mXImage = NULL;
 
 // Window    mRootWin;
@@ -427,13 +425,7 @@
 
     XSetErrorHandler(x11_errorhandler);
 
-#if 0
-    if (!mDisplayName)
-        if (!(mDisplayName = getenv("DISPLAY")))
-            mDisplayName = strdup(":0.0");
-#else
     dispName = XDisplayName(mDisplayName);
-#endif
 
     mp_msg(MSGT_VO, MSGL_V, "X11 opening display: %s\n", dispName);