summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-12-08 15:39:25 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-12-08 23:45:16 +0100
commit179ee78e8672ec44c50aa36279c48b28e008ea29 (patch)
treeef67cea44f4f00f9c55f7118858104161a11d1a7 /src
parent9dfb19483366d5cb2d020328330b164603f71bc8 (diff)
downloadcurl-179ee78e8672ec44c50aa36279c48b28e008ea29.tar.gz
curl: remove __EMX__ #ifdefs
These are OS/2-specific things added to the code in the year 2000. They were always ugly. If there's any user left, they still don't need it done this way. Closes #2166
Diffstat (limited to 'src')
-rw-r--r--src/tool_cb_prg.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/tool_cb_prg.c b/src/tool_cb_prg.c
index 403de03a9..8ea9ef020 100644
--- a/src/tool_cb_prg.c
+++ b/src/tool_cb_prg.c
@@ -120,10 +120,6 @@ int tool_progress_cb(void *clientp,
void progressbarinit(struct ProgressData *bar,
struct OperationConfig *config)
{
-#ifdef __EMX__
- /* 20000318 mgs */
- int scr_size[2];
-#endif
char *colp;
memset(bar, 0, sizeof(struct ProgressData));
@@ -134,12 +130,6 @@ void progressbarinit(struct ProgressData *bar,
if(config->use_resume)
bar->initial_size = config->resume_from;
-/* TODO: get terminal width through ansi escapes or something similar.
- try to update width when xterm is resized... - 19990617 larsa */
-#ifndef __EMX__
- /* 20000318 mgs
- * OS/2 users most likely won't have this env var set, and besides that
- * we're using our own way to determine screen width */
colp = curlx_getenv("COLUMNS");
if(colp) {
char *endptr;
@@ -152,16 +142,6 @@ void progressbarinit(struct ProgressData *bar,
}
else
bar->width = 79;
-#else
- /* 20000318 mgs
- * We use this emx library call to get the screen width, and subtract
- * one from what we got in order to avoid a problem with the cursor
- * advancing to the next line if we print a string that is as long as
- * the screen is wide. */
-
- _scrsize(scr_size);
- bar->width = scr_size[0] - 1;
-#endif
bar->out = config->global->errors;
}