volser: remove unused yesprompt function
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 15 Nov 2010 19:47:22 +0000 (14:47 -0500)
committerJeffrey Altman <jaltman@openafs.org>
Thu, 18 Nov 2010 00:42:34 +0000 (16:42 -0800)
In src/volser/vsprocs.c is an unused function, yesprompt.
Get rid of it.

Change-Id: Ie87e89f58a0ad0dc37d38fa48a178d19d7459515
Reviewed-on: http://gerrit.openafs.org/3309
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: Jeffrey Altman <jaltman@openafs.org>

src/volser/vsprocs.c

index 2ef8e75..5eb33ba 100644 (file)
@@ -217,21 +217,6 @@ MapPartIdIntoName(afs_int32 partId, char *partName)
 }
 
 int
-yesprompt(char *str)
-{
-    int response, c;
-    int code;
-
-    fprintf(STDERR, "Do you want to %s? [yn](n): ", str);
-    response = c = getchar();
-    while (!(c == EOF || c == '\n'))
-       c = getchar();          /*skip to end of line */
-    code = (response == 'y' || response == 'Y');
-    return code;
-}
-
-
-int
 PrintError(char *msg, afs_int32 errcode)
 {
     fprintf(STDERR, "%s", msg);