Eliminate unreachable code in lock()
authorAaron Traas <aaron@traas.org>
Sun, 2 Jul 2017 16:49:29 +0000 (12:49 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 2 Jul 2017 16:52:17 +0000 (12:52 -0400)
actions.c

index f2ec65adac01a042d5b8b7283d4e89f9bee2ca4f..ad09b4a254f0b584cdbbdef5124aa53eb91705f0 100644 (file)
--- a/actions.c
+++ b/actions.c
@@ -811,8 +811,6 @@ static int lock(token_t verb, token_t obj)
             obj = DOOR;
         if (AT(GRATE))
             obj = GRATE;
-        if (obj != 0 && HERE(CHAIN))
-            return GO_UNKNOWN;
         if (HERE(CHAIN))
             obj = CHAIN;
         if (obj == 0 || obj == INTRANSITIVE) {