diff options
Diffstat (limited to 'hw/xfree86/parser/scan.c')
-rw-r--r-- | hw/xfree86/parser/scan.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/hw/xfree86/parser/scan.c b/hw/xfree86/parser/scan.c index 68e7ec650..75a562bc1 100644 --- a/hw/xfree86/parser/scan.c +++ b/hw/xfree86/parser/scan.c @@ -106,10 +106,6 @@ static int pushToken = LOCK_TOKEN; static int eol_seen = 0; /* private state to handle comments */ LexRec val; -#ifdef __UNIXOS2__ -extern char *__XOS2RedirRoot(char *path); -#endif - /* * xf86strToUL -- * @@ -523,10 +519,6 @@ xf86pathIsAbsolute(const char *path) { if (path && path[0] == '/') return 1; -#ifdef __UNIXOS2__ - if (path && (path[0] == '\\' || (path[1] == ':'))) - return 1; -#endif return 0; } @@ -571,7 +563,6 @@ xf86pathIsSafe(const char *path) * %P projroot * %M major version number * %% % - * %& UNIXOS2 only: prepend X11ROOT env var */ #ifndef XCONFIGFILE @@ -625,9 +616,6 @@ DoSubstitution(const char *template, const char *cmdline, const char *projroot, static const char *env = NULL, *home = NULL; static char *hostname = NULL; static char majorvers[3] = ""; -#ifdef __UNIXOS2__ - static char *x11root = NULL; -#endif if (!template) return NULL; @@ -744,16 +732,6 @@ DoSubstitution(const char *template, const char *cmdline, const char *projroot, result[l++] = '%'; CHECK_LENGTH; break; -#ifdef __UNIXOS2__ - case '&': - if (!x11root) - x11root = getenv("X11ROOT"); - if (x11root) - APPEND_STR(x11root); - else - BAIL_OUT; - break; -#endif default: fprintf(stderr, "invalid escape %%%c found in path template\n", template[i]); |