From f69b4c5b626519f02e7e648de5d3a7a2612d9175 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 26 Jul 2012 09:27:42 +0200 Subject: [PATCH] include/optutils: remove unnecessary exclusive_option() Signed-off-by: Karel Zak --- include/optutils.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/include/optutils.h b/include/optutils.h index 7819ab360d..28a54b2ab6 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. * -- 2.47.2