diff options
author | Karel Zak | 2012-07-26 09:27:42 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-26 09:27:42 +0200 |
commit | f69b4c5b626519f02e7e648de5d3a7a2612d9175 (patch) | |
tree | 80be8a514dd1facfcff0c9494d5e70287c2d694b | |
parent | wdctl: use err_exclusive_options() (diff) | |
download | kernel-qcow2-util-linux-f69b4c5b626519f02e7e648de5d3a7a2612d9175.tar.gz kernel-qcow2-util-linux-f69b4c5b626519f02e7e648de5d3a7a2612d9175.tar.xz kernel-qcow2-util-linux-f69b4c5b626519f02e7e648de5d3a7a2612d9175.zip |
include/optutils: remove unnecessary exclusive_option()
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | include/optutils.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/optutils.h b/include/optutils.h index 7819ab360..28a54b2ab 100644 --- a/include/optutils.h +++ b/include/optutils.h @@ -18,20 +18,6 @@ static inline const char *option_to_longopt(int c, const struct option *opts) # define OPTUTILS_EXIT_CODE EXIT_FAILURE #endif -/* deprecated */ -static inline void exclusive_option(int *what, const int how, - const char *errmesg) -{ - if (*what == 0) { - *what = how; - return; - } - if (*what == how) - return; - errx(OPTUTILS_EXIT_CODE, - _("options %s are mutually exclusive"), errmesg); -} - /* * Check collisions between options. * |