diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2024-02-17 23:07:35 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2024-02-17 23:07:35 +0200 |
commit | 4ce300ce0884c6e552de2af9ae8050b47b01f0e7 (patch) | |
tree | c2f1d998d5ef774525a285de72e8afe1cb3973e0 /src/xz | |
parent | xz: Use stricter pledge(2) and Landlock sandbox. (diff) | |
download | xz-4ce300ce0884c6e552de2af9ae8050b47b01f0e7.tar.xz |
xz: Delete old commented-out code.
Diffstat (limited to '')
-rw-r--r-- | src/xz/message.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/xz/message.c b/src/xz/message.c index 0dfbebe1..deafdb43 100644 --- a/src/xz/message.c +++ b/src/xz/message.c @@ -121,25 +121,6 @@ message_init(void) // updating. progress_automatic = is_tty(STDERR_FILENO); - // Commented out because COLUMNS is rarely exported to environment. - // Most users have at least 80 columns anyway, let's think something - // fancy here if enough people complain. -/* - if (progress_automatic) { - // stderr is a terminal. Check the COLUMNS environment - // variable to see if the terminal is wide enough. If COLUMNS - // doesn't exist or it has some unparsable value, we assume - // that the terminal is wide enough. - const char *columns_str = getenv("COLUMNS"); - if (columns_str != NULL) { - char *endptr; - const long columns = strtol(columns_str, &endptr, 10); - if (*endptr != '\0' || columns < 80) - progress_automatic = false; - } - } -*/ - #ifdef SIGALRM // Establish the signal handlers which set a flag to tell us that // progress info should be updated. |