projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dead code: FLDEOF and BODYEOF are never set
[mmh]
/
uip
/
prompter.c
diff --git
a/uip/prompter.c
b/uip/prompter.c
index
ae0c0c6
..
2adbd48
100644
(file)
--- a/
uip/prompter.c
+++ b/
uip/prompter.c
@@
-141,7
+141,6
@@
main(int argc, char **argv)
switch (state = m_getfld(state, name, field, sizeof(field),
in)) {
case FLD:
switch (state = m_getfld(state, name, field, sizeof(field),
in)) {
case FLD:
- case FLDEOF:
case FLDPLUS:
/*
** Check if the value of field contains
case FLDPLUS:
/*
** Check if the value of field contains
@@
-183,18
+182,9
@@
abort:
}
}
}
}
- if (state == FLDEOF) { /* moby hack */
- /* draft has no body separator; only headers */
- fprintf(out, "--------\n");
- if (!qbody)
- break;
- printf("--------\n");
- goto has_no_body;
- }
continue;
case BODY:
continue;
case BODY:
- case BODYEOF:
case FILEEOF:
fprintf(out, "--------\n");
if (qbody) {
case FILEEOF:
fprintf(out, "--------\n");
if (qbody) {