]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
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 2ef8e752018a823295c8876b4fc69ccf4ea0d096..5eb33bac0b72822d54a41e6ec8819125a0968421 100644 (file)
@@ -216,21 +216,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)
 {