>From 3161d9cba3d7898d691524d4fd4da710f18d453f Mon Sep 17 00:00:00 2001 From: Sergiu Ivanov <unlimitedscol...@gmail.com> Date: Thu, 28 May 2009 21:53:21 +0300 Subject: [PATCH] Remove the ``--add'' and ``--remove'' options.
* options.c (argp_common_options): Remove the REMOVE and ADD options. (argp_parse_common_options): Remove the code handling OPT_ADD and OPT_REMOVE flags. * options.h: Remove the definitions of OPT_REMOVE, OPT_ADD, OPT_LONG_REMOVE, OPT_LONG_ADD. --- options.c | 12 ------------ options.h | 4 ---- 2 files changed, 0 insertions(+), 16 deletions(-) diff --git a/options.c b/options.c index 31a2608..c173d6e 100644 --- a/options.c +++ b/options.c @@ -59,10 +59,6 @@ static const struct argp_option argp_common_options[] = "Set the priority for the following filesystem to VALUE", 1}, { OPT_LONG_PATTERN, OPT_PATTERN, "PATTERN", 0, "add only nodes of the underlying filesystem matching pattern", 1}, - { OPT_LONG_REMOVE, OPT_REMOVE, 0, 0, - "remove the following filesystem", 1 }, - { OPT_LONG_ADD, OPT_ADD, 0, 0, - "add the following filesystem (Default)", 1 }, { 0 } }; @@ -103,14 +99,6 @@ argp_parse_common_options (int key, char *arg, struct argp_state *state) ncache_size = strtol (arg, NULL, 10); break; - case OPT_ADD: /* --add */ - ulfs_mode = ULFS_MODE_ADD; - break; - - case OPT_REMOVE: /* --remove */ - ulfs_mode = ULFS_MODE_REMOVE; - break; - case OPT_PATTERN: /* --match */ ulfs_match = 1; patternlist_add (&ulfs_patternlist, arg); diff --git a/options.h b/options.h index 0229556..b92684b 100644 --- a/options.h +++ b/options.h @@ -26,8 +26,6 @@ #define OPT_WRITABLE 'w' #define OPT_DEBUG 'd' #define OPT_CACHE_SIZE 'c' -#define OPT_REMOVE 'r' -#define OPT_ADD 'a' #define OPT_PATTERN 'm' #define OPT_PRIORITY 'p' #define OPT_STOW 's' @@ -36,8 +34,6 @@ #define OPT_LONG_WRITABLE "writable" #define OPT_LONG_DEBUG "debug" #define OPT_LONG_CACHE_SIZE "cache-size" -#define OPT_LONG_REMOVE "remove" -#define OPT_LONG_ADD "add" #define OPT_LONG_PATTERN "match" #define OPT_LONG_PRIORITY "priority" #define OPT_LONG_STOW "stow" -- 1.5.2.4