Removed -nowhatnowproc switch as it does nothing useful.
[mmh] / uip / dist.c
index dabfec7..b169352 100644 (file)
@@ -23,11 +23,9 @@ static struct swit switches[] = {
        { "form formfile", 0 },
 #define WHATSW  5
        { "whatnowproc program", 0 },
-#define NWHATSW  6
-       { "nowhatnowproc", 0 },
-#define VERSIONSW  7
+#define VERSIONSW  6
        { "version", 0 },
-#define HELPSW  8
+#define HELPSW  7
        { "help", 0 },
        { NULL, 0 }
 };
@@ -37,7 +35,7 @@ int
 main(int argc, char **argv)
 {
        int anot = 0, nedit = 0;
-       int nwhat = 0, in, out;
+       int in, out;
        char *cp, *cwd, *maildir, *msgnam;
        char *ed = NULL, *folder = NULL;
        char *form = NULL, *msg = NULL, buf[BUFSIZ], drft[BUFSIZ];
@@ -94,10 +92,6 @@ main(int argc, char **argv)
                                if (!(whatnowproc = *argp++) || *whatnowproc == '-')
                                        adios(NULL, "missing argument to %s",
                                                        argp[-2]);
-                               nwhat = 0;
-                               continue;
-                       case NWHATSW:
-                               nwhat++;
                                continue;
 
                        case FORMSW:
@@ -165,8 +159,6 @@ main(int argc, char **argv)
        seq_save(mp);  /* synchronize sequences  */
        context_save();
 
-       if (nwhat)
-               done(0);
        what_now(ed, nedit, NOUSE, drft, msgnam, 1, mp,
                        anot ? "Resent" : NULL, cwd);
        done(1);