summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2012-07-26 09:27:42 +0200
committerKarel Zak2012-07-26 09:27:42 +0200
commitf69b4c5b626519f02e7e648de5d3a7a2612d9175 (patch)
tree80be8a514dd1facfcff0c9494d5e70287c2d694b
parentwdctl: use err_exclusive_options() (diff)
downloadkernel-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.h14
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.
*