]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
nsswitch:wbinfo: Remove implementation of deprecated '--sequence'
authorPavel Filipenský <pfilipensky@samba.org>
Mon, 16 Dec 2024 12:57:17 +0000 (13:57 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 17 Dec 2024 12:30:31 +0000 (12:30 +0000)
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
nsswitch/wbinfo.c

index 87053fac9a7c9c27ff928fee08c5dd585e493191..4d0179edde9515952e486fe78c62e997bcb32adc 100644 (file)
@@ -605,14 +605,6 @@ static bool wbinfo_list_own_domain(void)
        return true;
 }
 
-/* show sequence numbers */
-static bool wbinfo_show_sequence(const char *domain)
-{
-       d_printf("This command has been deprecated.  Please use the "
-                "--online-status option instead.\n");
-       return false;
-}
-
 /* show sequence numbers */
 static bool wbinfo_show_onlinestatus(const char *domain)
 {
@@ -2295,7 +2287,6 @@ enum {
        OPT_SET_AUTH_USER = 1000,
        OPT_GET_AUTH_USER,
        OPT_DOMAIN_NAME,
-       OPT_SEQUENCE,
        OPT_GETDCNAME,
        OPT_DSGETDCNAME,
        OPT_DC_INFO,
@@ -2581,12 +2572,6 @@ int main(int argc, const char **argv, char **envp)
                        .val        = OPT_LIST_OWN_DOMAIN,
                        .descrip    = "List own domain",
                },
-               {
-                       .longName   = "sequence",
-                       .argInfo    = POPT_ARG_NONE,
-                       .val        = OPT_SEQUENCE,
-                       .descrip    = "Deprecated command, see --online-status",
-               },
                {
                        .longName   = "online-status",
                        .argInfo    = POPT_ARG_NONE,
@@ -3099,13 +3084,6 @@ int main(int argc, const char **argv, char **envp)
                                goto done;
                        }
                        break;
-               case OPT_SEQUENCE:
-                       if (!wbinfo_show_sequence(opt_domain_name)) {
-                               d_fprintf(stderr,
-                                         "Could not show sequence numbers\n");
-                               goto done;
-                       }
-                       break;
                case OPT_ONLINESTATUS:
                        if (!wbinfo_show_onlinestatus(opt_domain_name)) {
                                d_fprintf(stderr,