From cf92b9d9d624d983277bd32d8d59de0152d97721 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 3 Aug 2017 15:51:39 -0400 Subject: [PATCH] Remove duplicative phase code. --- actions.c | 2 +- advent.h | 1 - main.c | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/actions.c b/actions.c index b63f795..ec25552 100644 --- a/actions.c +++ b/actions.c @@ -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 } diff --git a/advent.h b/advent.h index f5fe672..4491b42 100644 --- a/advent.h +++ b/advent.h @@ -100,7 +100,6 @@ enum phase_codes { GO_MOVE, GO_TOP, GO_CLEAROBJ, - GO_CHECKHINT, GO_WORD2, GO_UNKNOWN, GO_DWARFWAKE, diff --git a/main.c b/main.c index f2e1075..41bbe95 100644 --- a/main.c +++ b/main.c @@ -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: -- 2.31.1