]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
xz: Delete old commented-out code.
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 17 Feb 2024 21:07:35 +0000 (23:07 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 21 May 2024 21:28:03 +0000 (00:28 +0300)
(cherry picked from commit 4ce300ce0884c6e552de2af9ae8050b47b01f0e7)
(cherry picked from commit b4b315a2060c0771b0d0ca83b9b31fcf1db40484)

src/xz/message.c

index c7c24dce5d96f2ed8e323286be7002b278a3182b..433decf100a6efbc814af0393172a0758b6614ff 100644 (file)
@@ -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.