bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] du: cleanup: remove dead-code vestige of already-removed option


From: Jim Meyering
Subject: [PATCH] du: cleanup: remove dead-code vestige of already-removed option
Date: Thu, 05 Nov 2009 08:38:07 +0100

While looking at du, I saw a FIXME comment
that should have been addressed two years ago,
back when the --megabytes option was removed.

>From cd65f11c4f5fbfff1f35df56d8afa708c8ac2066 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Thu, 5 Nov 2009 08:37:12 +0100
Subject: [PATCH] du: cleanup: remove dead-code vestige of already-removed option

* src/du.c (MEGABYTES_LONG_OPTION, main): Remove vestiges
of already-removed long option, --megabytes.
---
 src/du.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/du.c b/src/du.c
index 7ef0306..c33bbb7 100644
--- a/src/du.c
+++ b/src/du.c
@@ -197,7 +197,6 @@ enum
   FILES0_FROM_OPTION,
   HUMAN_SI_OPTION,
   MAX_DEPTH_OPTION,
-  MEGABYTES_LONG_OPTION,
   TIME_OPTION,
   TIME_STYLE_OPTION
 };
@@ -768,10 +767,6 @@ main (int argc, char **argv)
           }
           break;

-        case MEGABYTES_LONG_OPTION: /* FIXME: remove in 2009 */
-          error (0, 0,
-                 _("the --megabytes option is deprecated; use -m instead"));
-          /* fall through */
         case 'm':
           human_output_opts = 0;
           output_block_size = 1024 * 1024;
--
1.6.5.2.303.g13162




reply via email to

[Prev in Thread] Current Thread [Next in Thread]