From: Ralph Corderoy Date: Fri, 21 Apr 2017 13:01:21 +0000 (+0100) Subject: send and whatnow: Remove deprecated -attach... switches. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/77bd4fc7347961a3436393f4de70b0acca475ecc?ds=inline send and whatnow: Remove deprecated -attach... switches. They were changed to do nothing but warn on stderr that they were deprecated in 521674623 and 035c5db34, both before 1.6's release, and so can be removed ready for 1.7's release. --- diff --git a/uip/send.c b/uip/send.c index de94af2d..5168dea6 100644 --- a/uip/send.c +++ b/uip/send.c @@ -66,9 +66,6 @@ X("saslmech mechanism", SASLminc(6), SASLMECHSW) \ X("authservice", SASLminc(0), AUTHSERVICESW) \ X("user username", SASLminc(-4), USERSW) \ - X("attach", -6, ATTACHSW) \ - X("noattach", -8, NOATTACHSW) \ - X("attachformat", 7, ATTACHFORMATSW) \ X("port server-port-name/number", 4, PORTSW) \ X("tls", TLSminc(-3), TLSSW) \ X("initialtls", TLSminc(-10), INITTLSSW) \ @@ -300,17 +297,6 @@ main (int argc, char **argv) adios (NULL, "missing argument to %s", argp[-2]); vec[vecp++] = cp; continue; - - case ATTACHSW: - inform("The -attach switch is deprecated"); - continue; - case NOATTACHSW: - inform("The -noattach switch is deprecated"); - continue; - - case ATTACHFORMATSW: - inform("The -attachformat switch is deprecated"); - continue; } } else { msgs[msgp++] = cp; diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index e2e0ceb6..68c534eb 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -57,8 +57,6 @@ X("prompt string", 4, PRMPTSW) \ X("version", 0, VERSIONSW) \ X("help", 0, HELPSW) \ - X("attach header-field-name", -6, ATTACHSW) \ - X("noattach", -8, NOATTACHSW) \ #define X(sw, minchars, id) id, @@ -197,14 +195,6 @@ WhatNow (int argc, char **argv) if (!(myprompt = *argp++) || *myprompt == '-') adios (NULL, "missing argument to %s", argp[-2]); continue; - - case ATTACHSW: - inform("The -attach switch is deprecated"); - continue; - - case NOATTACHSW: - inform("The -noattach switch is deprecated"); - continue; } } if (drft) @@ -948,9 +938,6 @@ buildfile (char **argp, char *file) X("saslmech", SASLminc(5), SASLMECHSW) \ X("authservice", SASLminc(0), AUTHSERVICESW) \ X("user username", SASLminc(4), USERSW) \ - X("attach fieldname", 6, SNDATTACHSW) \ - X("noattach", 0, SNDNOATTACHSW) \ - X("attachformat", 7, SNDATTACHFORMAT) \ X("port server-port-name/number", 4, PORTSW) \ X("tls", TLSminc(-3), TLSSW) \ X("initialtls", TLSminc(-10), INITTLSSW) \ @@ -1190,17 +1177,6 @@ sendit (char *sp, char **arg, char *file, int pushed) /* FALLTHRU */ case SNDRFSW: continue; - - case SNDATTACHSW: - inform("The -attach switch is deprecated"); - continue; - case SNDNOATTACHSW: - inform("The -noattach switch is deprecated"); - continue; - - case SNDATTACHFORMAT: - inform("The -attachformat switch is deprecated"); - continue; } } inform("usage: %s [switches]", sp);