From 0c1e79c810f55a8e9b41431c19a6271a7474f06c Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sun, 21 Dec 2014 15:49:37 +0100 Subject: Remove unused HOOK_OPEN --- src/cmd2.cc | 6 ------ src/defines.h | 1 - 2 files changed, 7 deletions(-) diff --git a/src/cmd2.cc b/src/cmd2.cc index 38f7ac1d..b9b392f0 100644 --- a/src/cmd2.cc +++ b/src/cmd2.cc @@ -1195,9 +1195,6 @@ void do_cmd_open(void) } } - /* Process the appropriate hooks */ - process_hooks(HOOK_OPEN, "(d)", is_quest(dun_level)); - /* Cancel repeat unless we may continue */ if (!more) disturb(0); } @@ -1878,9 +1875,6 @@ bool_ easy_open_door(int y, int x) /* Sound */ sound(SOUND_OPENDOOR); - /* Process the appropriate hooks */ - process_hooks(HOOK_OPEN, "(d)", is_quest(dun_level)); - /* Experience */ gain_exp(1); } diff --git a/src/defines.h b/src/defines.h index 4495c499..b9efeca4 100644 --- a/src/defines.h +++ b/src/defines.h @@ -4343,7 +4343,6 @@ * Hooks */ #define HOOK_MONSTER_DEATH 0 -#define HOOK_OPEN 1 #define HOOK_GEN_QUEST 2 #define HOOK_END_TURN 3 #define HOOK_FEELING 4 -- cgit v1.2.3