]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include/optutils: remove unnecessary exclusive_option()
authorKarel Zak <kzak@redhat.com>
Thu, 26 Jul 2012 07:27:42 +0000 (09:27 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Jul 2012 07:27:42 +0000 (09:27 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
include/optutils.h

index 7819ab360d8a6461eee8bd28502dbf10caf9f7d4..28a54b2ab6b58eb0f07af3c0d5f3afa031bb0ac6 100644 (file)
@@ -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.
  *