Remove duplicative phase code.

This commit is contained in:
Eric S. Raymond 2017-08-03 15:51:39 -04:00
parent 26bf324e07
commit cf92b9d9d6
3 changed files with 1 additions and 3 deletions

View file

@ -1575,7 +1575,7 @@ int action(command_t command)
case unknown:
/* Unknown verb, couldn't deduce object - might need hint */
sspeak(WHAT_DO, command.word[0].raw);
return GO_CHECKHINT;
return GO_CLEAROBJ;
default: // LCOV_EXCL_LINE
BUG(SPEECHPART_NOT_TRANSITIVE_OR_INTRANSITIVE_OR_UNKNOWN); // LCOV_EXCL_LINE
}

View file

@ -100,7 +100,6 @@ enum phase_codes {
GO_MOVE,
GO_TOP,
GO_CLEAROBJ,
GO_CHECKHINT,
GO_WORD2,
GO_UNKNOWN,
GO_DWARFWAKE,

1
main.c
View file

@ -1199,7 +1199,6 @@ Lookup:
sspeak(DO_WHAT, command.word[0].raw);
command.obj = 0;
// Fallthrough
case GO_CHECKHINT: // Fallthrough
case GO_CLEAROBJ:
goto Lclearobj;
case GO_DWARFWAKE: