summaryrefslogtreecommitdiff
path: root/os/oscolor.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@benzedrine.nwnk.net>2007-06-28 18:59:05 -0400
committerAdam Jackson <ajax@benzedrine.nwnk.net>2007-06-28 18:59:05 -0400
commitf7f3fe7fe7233a2ffc43106c48f44cbbd82b7c19 (patch)
tree84ca56dbddf11442a1acfeeee6ac69afd0701f9e /os/oscolor.c
parent8a06ff9ffa4816d192e58e43e7fe569b97b4dd7c (diff)
Remove the remnants of OS/2 support.
This has never worked in any modular server release, and as far as I know was never tested in 6.7 through 6.9.
Diffstat (limited to 'os/oscolor.c')
-rw-r--r--os/oscolor.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/os/oscolor.c b/os/oscolor.c
index d53e4d8ff..e1756926d 100644
--- a/os/oscolor.c
+++ b/os/oscolor.c
@@ -225,16 +225,9 @@ OsInitColors(void)
if (!was_here)
{
-#ifndef __UNIXOS2__
path = (char*)ALLOCATE_LOCAL(strlen(rgbPath) +5);
strcpy(path, rgbPath);
strcat(path, ".txt");
-#else
- char *tmp = (char*)__XOS2RedirRoot(rgbPath);
- path = (char*)ALLOCATE_LOCAL(strlen(tmp) +5);
- strcpy(path, tmp);
- strcat(path, ".txt");
-#endif
if (!(rgb = fopen(path, "r")))
{
ErrorF( "Couldn't open RGB_DB '%s'\n", rgbPath );
@@ -245,11 +238,7 @@ OsInitColors(void)
while(fgets(line, sizeof(line), rgb))
{
lineno++;
-#ifndef __UNIXOS2__
if (sscanf(line,"%d %d %d %[^\n]\n", &red, &green, &blue, name) == 4)
-#else
- if (sscanf(line,"%d %d %d %[^\n\r]\n", &red, &green, &blue, name) == 4)
-#endif
{
if (red >= 0 && red <= 0xff &&
green >= 0 && green <= 0xff &&