From 2d52f976e305204062c36fd6a18c0b857de30e09 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 19 Jan 2007 18:41:05 +0000 Subject: [PATCH] (force, shut): Remove useless test of update pending. Commands are not dispatched while it is true. --- src/lib/commands/forc.c | 4 ---- src/lib/commands/shut.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/lib/commands/forc.c b/src/lib/commands/forc.c index 7a74bc5a..6bb4b517 100644 --- a/src/lib/commands/forc.c +++ b/src/lib/commands/forc.c @@ -41,10 +41,6 @@ force(void) { int seconds; - if (update_pending) { - pr("Update is pending\n"); - return RET_FAIL; - } if (shutdown_pending) { pr("Shutdown is pending\n"); return RET_FAIL; diff --git a/src/lib/commands/shut.c b/src/lib/commands/shut.c index 425b65a5..c72304d7 100644 --- a/src/lib/commands/shut.c +++ b/src/lib/commands/shut.c @@ -47,10 +47,6 @@ shut(void) struct natstr *us; char *p; - if (update_pending) { - pr("Update is pending\n"); - return RET_FAIL; - } shutdown_minutes = onearg(player->argp[1], "Time until shutdown in minutes (0 to abort shutdown sequence)? ");