Eliminate unreachable code in lock()

This commit is contained in:
Aaron Traas 2017-07-02 12:49:29 -04:00 committed by Eric S. Raymond
parent 2d71fe8137
commit dd50e7c9d3

View file

@ -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) {