From: Karel Zak Date: Thu, 26 Jul 2012 07:27:42 +0000 (+0200) Subject: include/optutils: remove unnecessary exclusive_option() X-Git-Tag: v2.22-rc1~68 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f69b4c5b626519f02e7e648de5d3a7a2612d9175;p=thirdparty%2Futil-linux.git include/optutils: remove unnecessary exclusive_option() Signed-off-by: Karel Zak --- 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. *